Re: vibe.d no routes match path

2020-02-04 Thread Steven Schveighoffer via Digitalmars-d-learn
On 2/4/20 10:35 AM, seany wrote:     router.post("/archive", &savedata);     router.get("/archive", &savedata); //also tested without this line [snip] Internal error information: No routes match path '/a' Did you go to /a? Looks like you only registered routes for /archive. -Steve

Re: vibe.d no routes match path

2020-02-04 Thread seany via Digitalmars-d-learn
* sorry, i meant 'archive' This is a production server. Is there anything i am doing wrong?

vibe.d no routes match path

2020-02-04 Thread seany via Digitalmars-d-learn
Please consider the code: import vibe.vibe; import std.conv; import std.file; import std.stdio; ushort port = 5502; void main(char[][] args) { auto router = new URLRouter; router.post("/archive", &savedata); router.get("/archive", &savedata); //also tested wit