Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask
- class DAO:
- def __init__(self):
- self.data = []
- def App(dao):
- app = Flask("example")
- @app.route("/")
- def m():
- return dao.data
- return app
- if __name__ == "__main__":
- app = App(DAO())
- app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement