in reply to Re^8: How can i capture the site_id in Dancer 2 app?
in thread How can i capture the site_id in Dancer 2 app?
site_id is not some magical value that appears inside your endpoint handler. You have defined your endpoint as accepting a param site_id to be represented in the endpoint URL as :site_id after the first slash. The caller of your endpoint supplies the value in the URL.
In the example call you showed above you are not calling the endpoint with a route parameter that would occupy the place of the token you defined in the handler. Try it as I suggested earlier:
orhttps://testchandan.com:5001/42
https://testchandan.com:5001/HELLO
The way forward always starts with a minimal test.
In Section
Seekers of Perl Wisdom