Closed alexwohlbruck closed 2 years ago
I am ditching Firebase functions, so I will need to add new routes on my backend to replace those. Expected routes will be:
Lamps:
GET /lamps
GET /lamps/:id
POST /lamps
PUT /lamps/:id/group
PUT /lamps/:id/state
DELETE /lamps/:id
Groups:
GET /groups
GET /groups/:id
Auth:
POST /login
POST /logout
GET /me
I am ditching Firebase functions, so I will need to add new routes on my backend to replace those. Expected routes will be:
Lamps:
GET /lamps
Get a user's lampsGET /lamps/:id
Get a lampPOST /lamps
Create a new lampPUT /lamps/:id/group
Change the group for a lampPUT /lamps/:id/state
Send a control command to a lampDELETE /lamps/:id
Delete a lampGroups:
GET /groups
List a users's groupsGET /groups/:id
Get a groupAuth:
POST /login
Sign inPOST /logout
Sign outGET /me
Get the current user