Add libs for pages.

master
Kaitlyn Parkhurst 3 years ago
parent 7b598a9bba
commit f667873cba
  1. 8
      Web/lib/MJB/Web.pm
  2. 14
      Web/lib/MJB/Web/Controller/Root.pm

@ -60,6 +60,14 @@ sub startup ($self) {
$c->redirect_to( $c->url_for( 'show_dashboard' ) ); $c->redirect_to( $c->url_for( 'show_dashboard' ) );
return undef; 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; 1;

@ -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;
Loading…
Cancel
Save