Clustericious::RouteBuilder - Route builder for Clustericious applications
version 1.21
package MyApp; use Mojo::Base qw( Clustericious::App ); package MyApp::Routes; use Clustericious::RouteBuilder; get '/' => sub { shift->render(text => 'welcome to myapp') };
This module provides a simplified interface for creating routes for your Clustericious application. To use it, create a Routes.pm that lives directly under your application's namespace (for example above MyApp's route module is MyApp::Routes). The interface is reminiscent of Mojolicious::Lite, because it was forked from there some time ago.
Define an HTTP route that matches any HTTP command verb.
Define an HTTP GET route
Define an HTTP HEAD route
Define an HTTP POST route
Define an HTTP PUT route
Define an HTTP DELETE route.
Define a Websocket route.
Require authentication for all subsequent routes.
Require specific authorization for all subsequent routes.
Clustericious, Mojolicious::Lite
Original author: Brian Duggan
Current maintainer: Graham Ollis <plicease@cpan.org>
Contributors:
Curt Tilmes
This software is copyright (c) 2013 by NASA GSFC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Clustericious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Clustericious
CPAN shell
perl -MCPAN -e shell install Clustericious
For more information on module installation, please visit the detailed CPAN module installation guide.