added base class for api handling

This commit is contained in:
Yeqing Zhang
2019-02-12 06:58:54 +08:00
parent 2610f76719
commit 04c5d69c9f
12 changed files with 136 additions and 117 deletions

8
app.py
View File

@@ -10,8 +10,10 @@ app.config['DEBUG'] = True
api = Api(app)
# reference api routes
import routes.task
import routes.spider
import routes.tasks
import routes.spiders
import routes.test
# start flask app
app.run()
if __name__ == '__main__':
app.run()