mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-30 03:09:58 +00:00
Moved frontend stuff to main area
This commit is contained in:
3
app.py
3
app.py
@@ -2,6 +2,7 @@ from application import app
|
||||
from application.api.views import api_blueprint
|
||||
from application.auth.views import auth_blueprint
|
||||
from application.dashboard.views import dash_blueprint
|
||||
from flask import redirect, url_for
|
||||
|
||||
app.register_blueprint(api_blueprint, url_prefix="/api")
|
||||
app.register_blueprint(auth_blueprint, url_prefix="/auth")
|
||||
@@ -11,7 +12,7 @@ app.register_blueprint(dash_blueprint, url_prefix="/dash")
|
||||
# Default app route
|
||||
@app.route("/")
|
||||
def home():
|
||||
return "Hello, World!"
|
||||
return redirect(url_for("auth.demo"))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user