Updating the front end JS to call paymentIntent handler
This commit is contained in:
@ -18,6 +18,6 @@ func (app *application) routes() http.Handler {
|
||||
MaxAge: 300,
|
||||
}))
|
||||
|
||||
mux.Get("/api/payment-intent", app.GetPaymentIntent)
|
||||
mux.Post("/api/payment-intent", app.GetPaymentIntent)
|
||||
return mux
|
||||
}
|
||||
|
Reference in New Issue
Block a user