forked from nighthawkcoders/nighthawk_csp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
34 lines (26 loc) · 915 Bytes
/
main.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
29
30
31
32
33
34
from flask import render_template
from __init__ import app
from starter.starter import app_starter
from algorithm.algorithm import app_algorithm
from api.webapi import app_api
from cruddy.app_crud import app_crud
from cruddy.app_crud_api import app_crud_api
from frontend.frontend import app_frontend
from y2022 import app_y2022
app.register_blueprint(app_starter)
app.register_blueprint(app_algorithm)
app.register_blueprint(app_api)
app.register_blueprint(app_crud)
app.register_blueprint(app_crud_api)
app.register_blueprint(app_frontend)
app.register_blueprint(app_y2022)
@app.route('/')
def index():
return render_template("index.html")
@app.errorhandler(404)
def page_not_found(e):
# note that we set the 404 status explicitly
return render_template('404.html'), 404
if __name__ == "__main__":
# runs the application on the repl development server
app.run(debug=True, port="5222")