1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut-pastebin synced 2025-06-07 14:17:26 -04:00

Starting DB

This commit is contained in:
Ryan Voots 2016-06-16 02:02:03 -04:00
parent 7eb52e2f8c
commit 1526c0c601
2 changed files with 4 additions and 2 deletions

6
app.pl
View file

@ -19,10 +19,12 @@ get '/' => sub {
$c->stash({pastedata => q{}, channels => \%channels});
$c->render(template => "editor");
};
get '/pastebin' => sub {$_[0]->redirect_to('/')};
get '/paste' => sub {$_[0]->redirect_to('/')};
get '/pastebin' => sub {
post '/paste' => sub {
my $c = shift;
$c->redirect_to('/');
$c->render(text => "post accepted!");
};
get '/pastebin/:pasteid' => sub {

BIN
pastes.db Normal file

Binary file not shown.