item put functionality

This commit is contained in:
2024-03-10 05:17:46 +00:00
parent 01f25d4f71
commit 95171706da
7 changed files with 275 additions and 78 deletions

View File

@@ -51,13 +51,16 @@ func main() {
router.Handle("/items/save", web.Action(itemActions.Save))
router.Handle("/items/edit/", web.Action(itemActions.Edit))
router.Handle("/items/delete/", web.Action(itemActions.Delete))
router.Handle("/items/delete/:id", web.Action(itemActions.Delete))
router.Handle("/items/save/", web.Action(itemActions.Save))
router.Handle("/items/save/:id", web.Action(itemActions.Save))
router.Handle("/items", web.Action(itemActions.Get))
router.Handle("/items/:id", web.Action(itemActions.Get))
router.Handle("/boxes", web.Action(boxActions.GetAll))
router.Handle("/items/", web.Action(itemActions.Get))
router.Handle("/items/:id", web.Action(itemActions.Get))
router.Handle("/boxes/", web.Action(boxActions.GetAll))
router.Handle("/boxes/:id", web.Action(boxActions.GetAll))
router.Handle("/", web.Action(routes.HomePage))
router.Handle("/index.html", web.Action(routes.HomePage))