Skip to content

Commit e951ec5

Browse files
committed
chore: enabled webhook xendit
1 parent 661b557 commit e951ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/serve_http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func registerHandler(app app.App) *mux.Router {
159159
public.HandleFunc("/payments", app.TestingTransactionHandler.CreatePayment).Methods(http.MethodPost)
160160
public.HandleFunc("/payments", app.TestingTransactionHandler.GetAllPayments).Methods(http.MethodGet)
161161
public.HandleFunc("/payments/{order_no}", app.TestingTransactionHandler.GetPayment).Methods(http.MethodGet)
162-
// public.HandleFunc("/webhooks/xendit", app.TestingTransactionHandler.XenditWebhook).Methods(http.MethodPost)
162+
public.HandleFunc("/webhooks/xendit", app.TestingTransactionHandler.XenditWebhook).Methods(http.MethodPost)
163163

164164
protectedV1Route := v1.NewRoute().Subrouter()
165165
protectedV1Route.Use(app.Middleware.AuthMiddleware(constants.RoleUser))

0 commit comments

Comments
 (0)