[TW5] Is it possible to add a route to the Server command?
25 views
Skip to first unread message
Devin Weaver
unread,
Jan 19, 2016, 10:34:48 PM1/19/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TiddlyWikiDev
I was playing with a plugin which sends post data to my local server. In production it serve the static TiddlyWiki HTML file and handles other POST requests differently.
However in development I'm running the tiddlywiki server command so that I can load the tiddlywiki page in the browser and start editing tiddlers. Unfortunately this means that POST requests to a different route then defined in the server command return a 404.
Is is possible to add a node only plugin that adds a route to the SimpleServer that gets spawned when tiddlywiki executes the server command?