Created
May 4, 2017 08:38
-
-
Save bomboclat/2985c8dee8913811e36fc46fe8066ab8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Login(): | |
def on_get(self, req, resp): | |
resp.content_type = 'text/html' | |
resp.body = 'Hello world!' | |
def on_post(self, req, resp): | |
raise falcon.HTTPSeeOther('loadpoints') | |
# devo fare il redirect da post a get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment