Created
December 12, 2015 21:05
-
-
Save guyjacks/3b3ca07fa62bd679cca3 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
import falcon | |
class ThingsResource: | |
def on_get(self, req, resp): | |
resp.status = falcon.HTTP_200 | |
resp.body = 'Hello Falcon' | |
app = falcon.API() | |
things = ThingsResource() | |
app.add_route('/things', things) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment