mirror of
https://github.com/grocy/grocy.git
synced 2025-08-13 17:27:23 +00:00
Rework API to be more RESTful (references #139)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Grocy.Api.Get('system/get-db-changed-time',
|
||||
Grocy.Api.Get('system/db-changed-time',
|
||||
function(result)
|
||||
{
|
||||
Grocy.DatabaseChangedTime = moment(result.changed_time);
|
||||
@@ -14,7 +14,7 @@
|
||||
// when there is no unsaved form data and when the user enabled auto reloading
|
||||
setInterval(function()
|
||||
{
|
||||
Grocy.Api.Get('system/get-db-changed-time',
|
||||
Grocy.Api.Get('system/db-changed-time',
|
||||
function(result)
|
||||
{
|
||||
var newDbChangedTime = moment(result.changed_time);
|
||||
|
Reference in New Issue
Block a user