Using the Perl web application platform, Dancer, I am having problems with trailing slashes in the URL mapping.
Say, for example, I want to map the following URL to an optional Id parameter:
get '/users/:id?' => sub
{
}
Both /users/morganand /users/match. Although /usersit will not. Which does not seem very uniform. As I would prefer, only matching URL: s without a trailing slash:
/users/morganand /users. How can i achieve this?
source
share