reorganized imports
This commit is contained in:
parent
59121c1b49
commit
47fcc23c4b
15
app.py
15
app.py
@ -1,11 +1,11 @@
|
||||
from flask import Flask, render_template, g, abort, request, jsonify
|
||||
|
||||
from src.util.utils import *
|
||||
|
||||
from src.api.get_monsters import *
|
||||
from src.api.get_families import *
|
||||
from src.api.get_monster_stats import *
|
||||
|
||||
from src.util.utils import *
|
||||
|
||||
from src.views.serve_content import *
|
||||
|
||||
app = Flask(__name__)
|
||||
@ -14,15 +14,18 @@ app = Flask(__name__)
|
||||
app.before_request(before_request)
|
||||
app.teardown_request(teardown_request)
|
||||
|
||||
# Register Serve Content Blueprints
|
||||
app.register_blueprint(serve_favicon_bp)
|
||||
app.register_blueprint(serve_monster_sprite_bp)
|
||||
|
||||
# Register API Blueprints
|
||||
app.register_blueprint(get_families_bp)
|
||||
app.register_blueprint(get_monsters_bp)
|
||||
app.register_blueprint(get_monster_stats_bp)
|
||||
|
||||
# Register Serve Content Blueprints
|
||||
app.register_blueprint(serve_favicon_bp)
|
||||
app.register_blueprint(serve_monster_sprite_bp)
|
||||
|
||||
# Register Other Views Blurprints (HTML Render Templates)
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def show_app():
|
||||
js_files = get_js_files()
|
||||
|
Loading…
Reference in New Issue
Block a user