Skip to content

Instantly share code, notes, and snippets.

@guyjacks
Created December 12, 2015 21:05
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 guyjacks/3b3ca07fa62bd679cca3 to your computer and use it in GitHub Desktop.
Save guyjacks/3b3ca07fa62bd679cca3 to your computer and use it in GitHub Desktop.
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