Skip to content

Instantly share code, notes, and snippets.

@Altai-man
Created October 3, 2018 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Altai-man/2e0427927a074dcfa242c3cd7d37254c to your computer and use it in GitHub Desktop.
Save Altai-man/2e0427927a074dcfa242c3cd7d37254c to your computer and use it in GitHub Desktop.
use Cro::HTTP::Router;
sub i-want-to-use-cookie-here() {
set-cookie('Foo', 'Bar');
}
sub routes() is export {
route {
get -> {
i-want-to-use-cookie-here;
content 'text/html', "<h1> akane </h1>";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment