Created
January 10, 2019 09:30
-
-
Save parthi22/6445667b18ed5768f1f72ef41cfa1cd4 to your computer and use it in GitHub Desktop.
app file with routing
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
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