App::HistHub::Web::Controller::Root - Root Controller for App::HistHub::Web


App-HistHub documentation Contained in the App-HistHub distribution.

Index


Code Index:

NAME

Top

App::HistHub::Web::Controller::Root - Root Controller for App::HistHub::Web

DESCRIPTION

Top

App::HistHub.

METHODS

Top

index

end

Attempt to render a view, if needed.

AUTHOR

Top

Daisuke Murase

LICENSE

Top

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


App-HistHub documentation Contained in the App-HistHub distribution.
package App::HistHub::Web::Controller::Root;
use strict;
use warnings;
use parent 'Catalyst::Controller';

__PACKAGE__->config->{namespace} = '';

sub index :Path :Args(0) {
    my ( $self, $c ) = @_;
    $c->view('TD')->template('index');
}

sub default :Path {
    my ( $self, $c ) = @_;
    $c->response->body( 'Page not found' );
    $c->response->status(404);
    
}

sub end : ActionClass('RenderView') {}

1;