diff --git a/Web/lib/MJB/Web.pm b/Web/lib/MJB/Web.pm index e998fdb..298ea6a 100644 --- a/Web/lib/MJB/Web.pm +++ b/Web/lib/MJB/Web.pm @@ -60,6 +60,14 @@ sub startup ($self) { $c->redirect_to( $c->url_for( 'show_dashboard' ) ); return undef; }); + + # General Informational Pages + $r->get ( '/' )->to( 'Root#index' )->name('show_homepage' ); + $r->get ( '/about' )->to( 'Root#about' )->name('show_about' ); + $r->get ( '/pricing' )->to( 'Root#pricing' )->name('show_pricing' ); + $r->get ( '/contact' )->to( 'Root#contact' )->name('show_contact' ); + + } 1; diff --git a/Web/lib/MJB/Web/Controller/Root.pm b/Web/lib/MJB/Web/Controller/Root.pm new file mode 100644 index 0000000..193c266 --- /dev/null +++ b/Web/lib/MJB/Web/Controller/Root.pm @@ -0,0 +1,14 @@ +package MJB::Web::Controller::Root; +use Mojo::Base 'Mojolicious::Controller', -signatures; +use Try::Tiny; +use DateTime; + +sub index ( $c ) { } + +sub about ( $c ) { } + +sub pricing ( $c ) { } + +sub contact ( $c ) { } + +1;