in reply to Dancer2 Parameter Matching Failed

When I try to access it from the webpage http://localhost:5000?username=foo&password=bar I am getting 404 error

? Hmm, how does that url relate to this one   get '/login:username:password' ?

If you remove the host there is only ?user... ... which doesn't look like /login....

See https://metacpan.org/pod/Dancer2::Manual#Declaring-Routes, URI

Replies are listed 'Best First'.
Re^2: Dancer2 Parameter Matching Failed
by akuk (Beadle) on Jun 13, 2015 at 03:42 UTC

    Sorry, I forgot to mention /login in the above url. it is http://localhost:5000/login?username=foo&password=bar in this I got 404 error

      Sorry, I forgot to mention /login in the above url. it is http://localhost:5000/login?username=foo&password=bar in this I got 404 error

      Read the link, its the same problem, /login?... is not the same /login/foo/bar