Mojolic...:routes(3)
π NAME π
Mojolicious::Command::routes β Routes command.
Okay bestie, this is the Mojolic...:routes(3) page (yes, the manual header truncates it like that), filed under User Contributed Perl Documentation. Itβs the routes command from Mojolicious, and itβs literally here to show you all your routes. π
β¨ SYNOPSIS β¨
Hereβs the exact shape, no cap:
Usage: APPLICATION routes [OPTIONS]
./myapp.pl routes
./myapp.pl routes -v
Options:
-h, --help Show this summary of available options
--home <path> Path to home directory of your application, defaults to
the value of MOJO_HOME or auto-detection
-m, --mode <name> Operating mode for your application, defaults to the
value of MOJO_MODE/PLACK_ENV or "development"
-v, --verbose Print additional details about routes, flags indicate
C=Conditions, P=Partial, U=Under and W=WebSocket
And the flags one by one, because we love a checklist π:
-h,--helpβ Show this summary of available options.--home <path>β Path to home directory of your application, defaults to the value ofMOJO_HOMEor auto-detection.-m,--mode <name>β Operating mode for your application, defaults to the value ofMOJO_MODE/PLACK_ENVor"development".-v,--verboseβ Print additional details about routes, flags indicateC=Conditions,P=Partial,U=UnderandW=WebSocket.
π¦ DESCRIPTION π¦
Mojolicious::Command::routes lists all your application routes. The way that it just lays them out for you? Main character energy, fr fr.
This is a core command, that means it is always enabled and its code a good example for learning to build new commands, youβre welcome to fork it. Iconic behavior, honestly. β¨
See "COMMANDS" in Mojolicious::Commands for a list of commands that are available by default.
π ATTRIBUTES π
Mojolicious::Command::routes inherits all attributes from Mojolicious::Command and implements the following new ones.
πΈ description πΈ
my $description = $routes->description;
$routes = $routes->description('Foo');
Short description of this command, used for the command list.
πΊ usage πΊ
my $usage = $routes->usage;
$routes = $routes->usage('Foo');
Usage information for this command, used for the help screen.
π METHODS π
Mojolicious::Command::routes inherits all methods from Mojolicious::Command and implements the following new ones.
β run β
$routes->run(@ARGV);
Run this command. Thatβs it. Thatβs the method. Slay. π
π SEE ALSO π
MojoliciousMojolicious::Guides<https://mojolicious.org>
source/version: perl v5.42.0 Β· date: 2026-07-15 Β· manual: Mojolic...:routes(3) π bye bestie, go check those routes! π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious 9.480.0-bp160.2.1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms