This commit is contained in:
2020-12-20 15:03:22 +01:00
parent 7b372855e2
commit 99b469e45e
3 changed files with 35 additions and 40 deletions

View File

@@ -57,7 +57,10 @@ Route.group(() => {
Route.resource('posts', 'PostsController').only(['store', 'update', 'destroy'])
Route.resource('subscribers', 'SubscribersController').only(['store', 'update', 'destroy'])
Route.resource('files', 'FileController').only(['store', 'destroy'])
Route.post('/states', 'StatesController.set')
Route.post('/states/sleeping', 'StatesController.setSleepingStatus')
Route.post('/states/learning', 'StatesController.setLearningStatus')
Route.post('/states/developing', 'StatesController.setDevelopingStatus')
Route.post('/states/music', 'StatesController.setListeningStatus')
Route.post('/stats/build', 'StatesController.incrementBuild')
Route.post('/stats/command', 'StatesController.incrementCommand')
Route.post('/locations', 'LocationsController.add')