editing cakes by id

This commit is contained in:
Bronku 2025-01-31 22:26:31 +01:00
parent 353dffdd82
commit a09cee09c8
3 changed files with 19 additions and 2 deletions

View file

@ -19,6 +19,7 @@ func (c *controller) LoadRouter(pub fs.FS) {
serveMux.HandleFunc("GET /available_cakes", c.cakeOptions)
serveMux.HandleFunc("GET /edit_cakes", c.cakeOptions)
serveMux.HandleFunc("GET /cake_editor", c.cakeEditor)
serveMux.HandleFunc("GET /cake_editor/{ID}", c.cakeEditor)
serveMux.HandleFunc("POST /new_cake", c.newCake)
c.Handler = serveMux