DEV Community

Jaker Wed
Jaker Wed

Posted on

how to route with modules

My project use dancer2 framework.
app.pl is in root of the folder.
auth.pm is in lib/ecommerce/controller/utils of project folder and has prefix '/auth'; get '/login' =>sub{...};

why doesn't request '/auth/login' route?

Top comments (2)

Collapse
 
davorg profile image
Dave Cross

Not enough information. You should post more of your code and more details about your project (and I suggest you'll get more help on Reddit or StackOverflow than you will on dev.to).

Collapse
 
szabgab profile image
Gabor Szabo

As Dave Cross also pointed out there are better ways to ask for help regarding Perl.
This is my list to get Perl-related help.