tfse-etl-api-v0.2/app.py

17 lines
417 B
Python
Raw Normal View History

2021-12-07 17:02:56 +08:00
from flask import Flask
2021-12-10 16:30:29 +08:00
from flask_cors import *
2021-12-07 17:02:56 +08:00
2022-03-24 16:10:45 +08:00
from CompanyData.routes import company_route
from RatingData.routes import rating_route
2021-12-07 17:02:56 +08:00
2021-12-10 16:30:29 +08:00
app = Flask(__name__)
2021-12-13 15:48:22 +08:00
CORS(app, supports_credentials=True)
2021-12-10 16:30:29 +08:00
app.config['JSON_SORT_KEYS'] = False
2021-12-13 15:48:22 +08:00
2021-12-10 16:30:29 +08:00
app.register_blueprint(company_route, url_prefix='/etl_tfse/company')
2021-12-15 15:33:09 +08:00
app.register_blueprint(rating_route, url_prefix='/etl_tfse/rating')
2021-12-13 15:48:22 +08:00
if __name__ == '__main__':
app.run()