mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-19 08:45:13 +00:00
Added deletion support to HttpSync and LocalFileSync
This commit is contained in:
@@ -190,6 +190,11 @@ var commandLineSwitches = {
|
||||
response.end();
|
||||
});
|
||||
break;
|
||||
case "DELETE":
|
||||
app.store.deleteTiddler(decodeURIComponent(path.substr(1)));
|
||||
response.writeHead(204, "OK");
|
||||
response.end();
|
||||
break;
|
||||
case "GET":
|
||||
if(path === "/") {
|
||||
response.writeHead(200, {"Content-Type": "text/html"});
|
||||
|
||||
Reference in New Issue
Block a user