fix(medusa-payment-stripe): api endpoint for getStripePayments (#4928)
fixes https://github.com/medusajs/medusa/issues/4927 Co-authored-by: zulian-coconutlab <73976574+zulian-coconutlab@users.noreply.github.com>
This commit is contained in:
5
.changeset/warm-worms-wave.md
Normal file
5
.changeset/warm-worms-wave.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"medusa-payment-stripe": patch
|
||||
---
|
||||
|
||||
fix(medusa-payment-stripe): api endpoint for getStripePayments
|
||||
@@ -22,11 +22,11 @@ export default (rootDirectory) => {
|
||||
}
|
||||
|
||||
app.use(
|
||||
`/admin/orders/stripe-payments/:id`,
|
||||
`/admin/orders/stripe-payments/:order_id`,
|
||||
cors(corsOptions),
|
||||
authenticate()
|
||||
)
|
||||
app.get(`/admin/orders/stripe-payments/:id`, async (req, res) => {
|
||||
app.get(`/admin/orders/stripe-payments/:order_id`, async (req, res) => {
|
||||
const payments = await getStripePayments(req)
|
||||
res.json({ payments })
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user