1
0
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:
Jeremy Ruston
2012-04-05 18:25:39 +01:00
parent 0ac55688c4
commit d34f163dbc
3 changed files with 53 additions and 21 deletions

View File

@@ -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"});