working on resetting everything up with updated versions
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user