udemy-go-web-2/cmd/web/routes.go

17 lines
260 B
Go
Raw Normal View History

2024-08-03 10:17:39 +00:00
package main
import (
"net/http"
"github.com/go-chi/chi/v5"
)
func (app *application) routes() http.Handler {
mux := chi.NewRouter()
mux.Get("/virtual-terminal", app.VirtualTerminal)
2024-08-04 16:17:56 +00:00
mux.Post("/payment-succeeded", app.PaymentSucceeded)
2024-08-03 10:17:39 +00:00
return mux
}