diff --git a/PostText.pl b/PostText.pl index 6f9d19c..3cedec3 100755 --- a/PostText.pl +++ b/PostText.pl @@ -5,8 +5,11 @@ use Mojolicious::Lite -signatures; -get '/', sub ($c) { - $c->render(text => 'ayy... lmao') +# Root redirect +get '/', sub ($c) { $c->redirect_to('view') }; + +get '/view', sub ($c) { + $c->render() }; app->start(); diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep index e69de29..9f3061e 100644 --- a/templates/layouts/main.html.ep +++ b/templates/layouts/main.html.ep @@ -0,0 +1,10 @@ + + +
+Some threads here...