Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. from flask import Flask
  2.  
  3. class DAO:
  4. def __init__(self):
  5. self.data = []
  6.  
  7. def App(dao):
  8.  
  9. app = Flask("example")
  10.  
  11. @app.route("/")
  12. def m():
  13. return dao.data
  14.  
  15. return app
  16.  
  17. if __name__ == "__main__":
  18. app = App(DAO())
  19. app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement