Move some stuff around
This commit is contained in:
parent
40353ec8fa
commit
0107f1d580
|
@ -37,7 +37,7 @@ use Humming-Bird::Middleware;
|
||||||
use Humming-Bird::Advice;
|
use Humming-Bird::Advice;
|
||||||
use Template::Mustache;
|
use Template::Mustache;
|
||||||
|
|
||||||
# 'Config' stuff
|
# 'Config-y' stuff
|
||||||
my $template = Template::Mustache.new: :from<./templates>;
|
my $template = Template::Mustache.new: :from<./templates>;
|
||||||
|
|
||||||
middleware &middleware-logger;
|
middleware &middleware-logger;
|
||||||
|
@ -51,7 +51,7 @@ get '/', -> $request, $response {
|
||||||
};
|
};
|
||||||
|
|
||||||
post '/', -> $request, $response {
|
post '/', -> $request, $response {
|
||||||
dd $request.content;
|
dd $request;
|
||||||
|
|
||||||
$response.redirect('/');
|
$response.redirect('/');
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue