Auto reload the current page when the database has changed and when idling (closes #59)

This commit is contained in:
Bernd Bestel
2018-09-24 13:53:18 +02:00
parent 8540fc44f3
commit 2a0ec30bb0
6 changed files with 114 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ $app->group('/api', function()
$this->post('/edit-object/{entity}/{objectId}', '\Grocy\Controllers\GenericEntityApiController:EditObject');
$this->get('/delete-object/{entity}/{objectId}', '\Grocy\Controllers\GenericEntityApiController:DeleteObject');
// System
$this->get('/system/get-db-changed-time', '\Grocy\Controllers\SystemApiController:GetDbChangedTime');
// Users
$this->get('/users/get', '\Grocy\Controllers\UsersApiController:GetUsers');
$this->post('/users/create', '\Grocy\Controllers\UsersApiController:CreateUser');