missed save
This commit is contained in:
@@ -89,6 +89,8 @@ func main() {
|
|||||||
mux := http.NewServeMux()
|
mux := http.NewServeMux()
|
||||||
mux.HandleFunc("GET /carts", fs.CartsHandler)
|
mux.HandleFunc("GET /carts", fs.CartsHandler)
|
||||||
mux.HandleFunc("GET /cart/{id}", fs.CartHandler)
|
mux.HandleFunc("GET /cart/{id}", fs.CartHandler)
|
||||||
|
mux.HandleFunc("/promotions", fs.PromotionsHandler)
|
||||||
|
|
||||||
mux.HandleFunc("/ws", hub.ServeWS)
|
mux.HandleFunc("/ws", hub.ServeWS)
|
||||||
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
|
mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) {
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
|
|||||||
Reference in New Issue
Block a user