NAME

Clustericious::RouteBuilder - Route builder for Clustericious applications

VERSION

version 1.29

SYNOPSIS

 package MyApp;
 
 use Mojo::Base qw( Clustericious::App );
 
 package MyApp::Routes;

 use Clustericious::RouteBuilder;
 
 get '/' => sub { shift->render(text => 'welcome to myapp') };

DESCRIPTION

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.

FUNCTIONS

any

Define an HTTP route that matches any HTTP command verb.

get

Define an HTTP GET route

Define an HTTP HEAD route

post

Define an HTTP POST route

put

Define an HTTP PUT route

del

Define an HTTP DELETE route.

websocket

Define a Websocket route.

authenticate

Require authentication for all subsequent routes.

authorize [ $action ]

Require specific authorization for all subsequent routes.

SEE ALSO

Clustericious, Mojolicious::Lite

AUTHOR

Original author: Brian Duggan

Current maintainer: Graham Ollis <plicease@cpan.org>

Contributors:

Curt Tilmes

Yanick Champoux

COPYRIGHT AND LICENSE

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.