-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapp.py
28 lines (22 loc) · 859 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import secrets
from dotenv import load_dotenv
from flask import Flask
from controllers.multisearch import bp_multisearch
from controllers.team_builder import bp_team_builder
from controllers.compositions import bp_compositions
from controllers.faq import bp_faq
from controllers.communities import bp_communities
from controllers.special_pages import bp_special_pages
load_dotenv()
# create the flask app
app = Flask(__name__, static_url_path="/static")
app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 60 * 60
app.secret_key = secrets.token_hex(24)
app.register_blueprint(bp_multisearch)
app.register_blueprint(bp_team_builder)
app.register_blueprint(bp_compositions)
app.register_blueprint(bp_faq)
app.register_blueprint(bp_communities)
app.register_blueprint(bp_special_pages)
if __name__ == "__main__":
app.run(host="127.0.0.1", port=8001, debug=True)