Last active
July 17, 2018 12:06
-
-
Save datitran/99d4c66d1fbd24df460b504e2f3d0fdf 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
| import falcon | |
| class HelloResource: | |
| def on_get(self, req, resp): | |
| resp.status = falcon.HTTP_200 | |
| resp.body = 'Hello World!' | |
| api = falcon.API() | |
| api.add_route('/', HelloResource()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment