new cake form

This commit is contained in:
Bronku 2025-01-31 19:39:17 +01:00
parent 36484f874f
commit 331f3080f9
8 changed files with 127 additions and 43 deletions

View file

@ -16,7 +16,10 @@ func (c *controller) LoadRouter(pub fs.FS) {
serveMux.Handle("GET /", http.FileServerFS(unwrap(fs.Sub(pub, "public"))))
serveMux.HandleFunc("POST /order/new", c.postNewOrder)
serveMux.HandleFunc("GET /cake/options", c.cakeOptions)
serveMux.HandleFunc("GET /available_cakes", c.cakeOptions)
serveMux.HandleFunc("GET /edit_cakes", c.cakeOptions)
serveMux.HandleFunc("GET /cake_editor", c.editCakes)
serveMux.HandleFunc("POST /new_cake", c.newCake)
c.Handler = serveMux
}