Cleanup old frontend.
This commit is contained in:
parent
1917fe909d
commit
0b01cf04aa
@ -30,13 +30,11 @@ db = SQLAlchemy(app)
|
|||||||
|
|
||||||
# Must be after db declaration because some components in blueprints need it.
|
# Must be after db declaration because some components in blueprints need it.
|
||||||
from .api import blueprint as api
|
from .api import blueprint as api
|
||||||
#from .frontend import blueprint as frontend
|
|
||||||
|
|
||||||
#app.register_blueprint(frontend, url_prefix='/app')
|
|
||||||
app.register_blueprint(api, url_prefix='/api')
|
app.register_blueprint(api, url_prefix='/api')
|
||||||
|
|
||||||
|
|
||||||
# Redirect / to frontend index.
|
# Redirect / to API documentation.
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
return redirect(url_for('api.doc'))
|
return redirect(url_for('api.doc'))
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
from flask import Blueprint, redirect, url_for
|
|
||||||
|
|
||||||
blueprint = Blueprint(
|
|
||||||
'frontend',
|
|
||||||
__name__,
|
|
||||||
template_folder='templates',
|
|
||||||
static_folder='static'
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@blueprint.route('/')
|
|
||||||
def index():
|
|
||||||
return redirect(url_for('frontend.static', filename='index.html'))
|
|
Loading…
Reference in New Issue
Block a user