@dbbs/strapi-stripe-payment
Version:
Strapi integration plugin for Stripe payment system
18 lines (16 loc) • 468 B
text/typescript
/**
* TODO: Add logic to conditionally choose the middleware based on the selected authorization method.
* If Auth0 is selected, use `auth0AuthMiddleware`, otherwise use `extractUserMiddleware`.
*/
import extractUserMiddleware from '../../middlewares/extractUser.middleware'
export default [
{
method: 'GET',
path: '/api/plans/:id',
handler: 'plan.getPlanById',
config: {
auth: false,
middlewares: [extractUserMiddleware]
}
}
]