mirror of
https://github.com/KevinMidboe/planetposen-mail.git
synced 2025-10-29 01:30:32 +00:00
15 lines
410 B
Go
15 lines
410 B
Go
package server
|
|
|
|
import (
|
|
"github.com/kevinmidboe/planetposen-mail/server/handler"
|
|
)
|
|
|
|
const v1API string = "/api/v1/"
|
|
|
|
func (s *Server) setupRoutes() {
|
|
s.Router.HandleFunc("/_healthz", handler.Healthz).Methods("GET").Name("Health")
|
|
|
|
api := s.Router.PathPrefix(v1API).Subrouter()
|
|
api.HandleFunc("/send-confirmation", handler.SendOrderConfirmation(s.SendGrid)).Methods("POST").Name("SendOrderConfirmation")
|
|
}
|