working on resetting everything up with updated versions

This commit is contained in:
2023-01-09 22:23:53 -05:00
parent cf6e40db56
commit d8ca168844
20 changed files with 22854 additions and 1926 deletions

View File

@@ -60,8 +60,9 @@ func (s *Server) GetAllItemsAtCabinetHandler(c *fiber.Ctx) error {
return c.Status(fiber.StatusOK).JSON(items)
}
// AddNewItemHandler adds a new room
// AddNewItemHandler adds a new item
func (s *Server) AddNewItemHandler(c *fiber.Ctx) error {
// If we supply a room ID it is an item in a room, if not it is in a cabinet
storageType := "room"
cabinetID := 0
roomID, err := c.ParamsInt("roomID")