Updating the front end JS to call paymentIntent handler

This commit is contained in:
2024-08-04 17:34:39 +02:00
parent 1b4d1aef58
commit 48695949e3
2 changed files with 80 additions and 1 deletions

View File

@ -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
}