editing cakes by id
This commit is contained in:
parent
353dffdd82
commit
a09cee09c8
3 changed files with 19 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue