mirror of
https://github.com/perlbot/perlbuut-pastebin
synced 2025-06-07 14:17:26 -04:00
Starting DB
This commit is contained in:
parent
7eb52e2f8c
commit
1526c0c601
2 changed files with 4 additions and 2 deletions
6
app.pl
6
app.pl
|
@ -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
BIN
pastes.db
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue