mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 18:08:13 +08:00
sync endpoints should not set csrf cookie, #541
This commit is contained in:
parent
54e37dea20
commit
cfb313b60e
1 changed files with 1 additions and 1 deletions
|
@ -172,11 +172,11 @@ function register(app) {
|
||||||
apiRoute(POST, '/api/password/change', passwordApiRoute.changePassword);
|
apiRoute(POST, '/api/password/change', passwordApiRoute.changePassword);
|
||||||
|
|
||||||
apiRoute(POST, '/api/sync/test', syncApiRoute.testSync);
|
apiRoute(POST, '/api/sync/test', syncApiRoute.testSync);
|
||||||
apiRoute(GET, '/api/sync/check', syncApiRoute.checkSync);
|
|
||||||
apiRoute(POST, '/api/sync/now', syncApiRoute.syncNow);
|
apiRoute(POST, '/api/sync/now', syncApiRoute.syncNow);
|
||||||
apiRoute(POST, '/api/sync/fill-sync-rows', syncApiRoute.fillSyncRows);
|
apiRoute(POST, '/api/sync/fill-sync-rows', syncApiRoute.fillSyncRows);
|
||||||
apiRoute(POST, '/api/sync/force-full-sync', syncApiRoute.forceFullSync);
|
apiRoute(POST, '/api/sync/force-full-sync', syncApiRoute.forceFullSync);
|
||||||
apiRoute(POST, '/api/sync/force-note-sync/:noteId', syncApiRoute.forceNoteSync);
|
apiRoute(POST, '/api/sync/force-note-sync/:noteId', syncApiRoute.forceNoteSync);
|
||||||
|
route(GET, '/api/sync/check', [auth.checkApiAuth], syncApiRoute.checkSync, apiResultHandler);
|
||||||
route(GET, '/api/sync/changed', [auth.checkApiAuth], syncApiRoute.getChanged, apiResultHandler);
|
route(GET, '/api/sync/changed', [auth.checkApiAuth], syncApiRoute.getChanged, apiResultHandler);
|
||||||
route(PUT, '/api/sync/update', [auth.checkApiAuth], syncApiRoute.update, apiResultHandler);
|
route(PUT, '/api/sync/update', [auth.checkApiAuth], syncApiRoute.update, apiResultHandler);
|
||||||
route(POST, '/api/sync/finished', [auth.checkApiAuth], syncApiRoute.syncFinished, apiResultHandler);
|
route(POST, '/api/sync/finished', [auth.checkApiAuth], syncApiRoute.syncFinished, apiResultHandler);
|
||||||
|
|
Loading…
Reference in a new issue