in reply to How can i capture the site_id in Dancer 2 app?

You've made site_id part of the route, not a parameter. Read retrieving request parameters in the Dancer2 documentation.