2022-07-22 18:37:31 -04:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
# PostText v0.1
|
|
|
|
# Jul 22
|
|
|
|
|
|
|
|
use Mojolicious::Lite -signatures;
|
|
|
|
|
2022-07-28 20:44:47 -04:00
|
|
|
# Root redirect
|
|
|
|
get '/', sub ($c) { $c->redirect_to('view') };
|
|
|
|
|
|
|
|
get '/view', sub ($c) {
|
|
|
|
$c->render()
|
2022-07-22 18:37:31 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
app->start();
|