Skip to content

Instantly share code, notes, and snippets.

@parthi22
Created January 10, 2019 09:30
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 parthi22/6445667b18ed5768f1f72ef41cfa1cd4 to your computer and use it in GitHub Desktop.
Save parthi22/6445667b18ed5768f1f72ef41cfa1cd4 to your computer and use it in GitHub Desktop.
app file with routing
from flask import Flask
from flask_restful import Api
from resources.todo import Todo
app = Flask(__name__)
api = Api(app)
api.add_resource(Todo, "/todo/<int:id>")
if __name__ == "__main__":
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment