On 06/25/2016 05:23 PM, Stefan Adams wrote:
On Sat, Jun 25, 2016 at 3:42 PM, <[email protected]> wrote:

$ curl -X GET http://localhost:3000 -H "X-Bender: martini" -H "X-Awesome:
1" |head

[Sat Jun 25 16:22:14 2016] [debug] GET "/"


  You issued a GET request for "/", but the only defined routes are
"/welcome" and "/admin/dashboard".  You can verify this with

$ perl group.pl routes


Try your curl once again using one of those two routes.


Thank you very much; that helped.

$ curl -X GET http://localhost:3000/welcome -H 'X-Bender: martini' -H 'X-Awesome: 1'Hi Bender.

$ curl -X GET http://localhost:3000/admin/dashboard -H 'X-Bender: martini' -H 'X-Awesome: 1'
Nothing to see here yet.

$ curl -X GET http://localhost:3000/admin/dashboard  -H 'X-Bender: martini'
You're not awesome enough.

--
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to