mirror of
https://github.com/StefBuwalda/ProjectIOT.git
synced 2025-10-30 03:09:58 +00:00
19 lines
520 B
Python
19 lines
520 B
Python
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
|
|
|
|
app.register_blueprint(api_blueprint, url_prefix="/api")
|
|
app.register_blueprint(auth_blueprint, url_prefix="/auth")
|
|
app.register_blueprint(dash_blueprint, url_prefix="/dash")
|
|
|
|
|
|
# Default app route
|
|
@app.route("/")
|
|
def home():
|
|
return "Hello, World!"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="192.168.137.1", port=2222, debug=True)
|