2021-11-29 11:05:56 +08:00
|
|
|
from flask import Flask
|
2021-11-29 17:38:50 +08:00
|
|
|
from flask_cors import *
|
|
|
|
|
2022-01-26 17:34:59 +08:00
|
|
|
from company.company_routes import company_route
|
2021-12-17 17:01:32 +08:00
|
|
|
from file.routes import file_route
|
2021-12-01 01:18:23 +08:00
|
|
|
from user.routes import user_route
|
2021-12-02 17:20:48 +08:00
|
|
|
from input.routes import input_route
|
2021-11-29 11:05:56 +08:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
2021-11-29 17:38:50 +08:00
|
|
|
CORS(app, supports_credentials=True)
|
|
|
|
app.config['JSON_SORT_KEYS'] = False
|
2021-11-29 11:05:56 +08:00
|
|
|
|
|
|
|
|
2021-12-17 17:01:32 +08:00
|
|
|
app.register_blueprint(file_route, url_prefix='/app/file')
|
2021-11-29 17:38:50 +08:00
|
|
|
app.register_blueprint(user_route, url_prefix='/app/user')
|
2021-12-02 17:20:48 +08:00
|
|
|
app.register_blueprint(input_route, url_prefix='/app/input')
|
2021-12-13 16:04:10 +08:00
|
|
|
app.register_blueprint(company_route, url_prefix='/app/company')
|
2021-11-29 11:05:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
app.run()
|