-
-
Save Altai-man/2e0427927a074dcfa242c3cd7d37254c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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