mirror of
https://github.com/grocy/grocy.git
synced 2025-08-13 01:06:23 +00:00
Rework API to be more RESTful (references #139)
This commit is contained in:
@@ -66,7 +66,7 @@ $(document).on('click', '.track-chore-button', function(e)
|
||||
var choreName = $(e.currentTarget).attr('data-chore-name');
|
||||
var trackedTime = moment().format('YYYY-MM-DD HH:mm:ss');
|
||||
|
||||
Grocy.Api.Post('chores/' + choreId + '/execute?tracked_time=' + trackedTime,
|
||||
Grocy.Api.Post('chores/' + choreId + '/execute', { 'tracked_time': trackedTime },
|
||||
function()
|
||||
{
|
||||
Grocy.Api.Get('chores/' + choreId,
|
||||
|
Reference in New Issue
Block a user