Added authHandler to strip entrypoint
This commit is contained in:
parent
6d547a9931
commit
8e7db0c17a
@ -1,3 +1,4 @@
|
||||
import authHandler from "@App/middlewares/AuthHandler";
|
||||
import ApiController from "@Common/system/controller-pattern/ApiController";
|
||||
import { Controller, Post } from "@ControllerPattern/index";
|
||||
import StripeService from "@Services/common/StripeService/StripeService";
|
||||
@ -16,7 +17,7 @@ export default class StripeController extends ApiController {
|
||||
/**
|
||||
* @description Create a new checkout session
|
||||
*/
|
||||
@Post("/api/v1/admin/stripe", [])
|
||||
@Post("/api/v1/admin/stripe", [authHandler])
|
||||
protected async post(req: Request, response: Response) {
|
||||
try {
|
||||
//init Subscription resource with request body values
|
||||
|
Loading…
x
Reference in New Issue
Block a user