2021-10-11 17:19:00 +08:00
|
|
|
from flask import Flask
|
2021-11-19 14:38:49 +08:00
|
|
|
from flask_cors import *
|
2021-10-11 17:19:00 +08:00
|
|
|
|
2021-12-15 00:38:23 +08:00
|
|
|
from Rating.routes import rating_route
|
|
|
|
from Report.routes import report_route
|
2021-10-11 17:19:00 +08:00
|
|
|
|
2021-11-19 14:38:49 +08:00
|
|
|
app = Flask(__name__)
|
|
|
|
app.config['JSON_SORT_KEYS'] = False
|
|
|
|
CORS(app, supports_credentials=True)
|
2021-10-11 17:19:00 +08:00
|
|
|
|
|
|
|
|
2021-12-15 00:38:23 +08:00
|
|
|
app.register_blueprint(report_route, url_prefix='/tfse_rating/report')
|
|
|
|
app.register_blueprint(rating_route, url_prefix='/tfse_rating/rating')
|
|
|
|
|
|
|
|
|
2021-10-11 17:19:00 +08:00
|
|
|
if __name__ == '__main__':
|
|
|
|
app.run()
|