Update get-can-sync.js

This commit is contained in:
tiddlygit-test 2020-08-13 00:16:53 +08:00
parent 8b55b14b38
commit a346829f9c

View file

@ -6,7 +6,6 @@ GET /watch-fs-can-sync
\*/
(function () {
exports.method = 'GET';
exports.aaa = 'bbb';
// route should start with something https://github.com/Jermolene/TiddlyWiki5/issues/4807
exports.path = /^\/linonetwo\/watch-fs-can-sync$/;
@ -14,8 +13,6 @@ GET /watch-fs-can-sync
exports.handler = function handler(request, response, state) {
response.writeHead(200, { 'Content-Type': 'application/json' });
const { canSync } = state.wiki.watchFs;
// DEBUG: console
console.log(`canSync`, canSync);
response.end(JSON.stringify(canSync), 'utf8');
};
})();