Skip to content

Instantly share code, notes, and snippets.

@pythononwheels
Created February 8, 2019 15:00
Show Gist options
  • Save pythononwheels/d0f067c0d1133cb5a293cda6db8b9f5f to your computer and use it in GitHub Desktop.
Save pythononwheels/d0f067c0d1133cb5a293cda6db8b9f5f to your computer and use it in GitHub Desktop.
@app.make_method_routes()
class HelloHandler(BaseHandler):
@route(r'/hello/<int:identifier>', dispatch=["get"])
def hello(self, identifier=None):
self.write("Hello world! " + str(identifier))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment