new cake form
This commit is contained in:
parent
36484f874f
commit
331f3080f9
8 changed files with 127 additions and 43 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue