Add SmartTools Registry with Web UI (Phase 1-7) #18
|
|
@ -19,6 +19,9 @@ from .sessions import SQLiteSessionInterface, cleanup_expired_sessions
|
||||||
def create_web_app() -> Flask:
|
def create_web_app() -> Flask:
|
||||||
app = registry_app.create_app()
|
app = registry_app.create_app()
|
||||||
|
|
||||||
|
# Import routes BEFORE registering blueprint
|
||||||
|
from . import routes # noqa: F401
|
||||||
|
|
||||||
app.register_blueprint(web_bp)
|
app.register_blueprint(web_bp)
|
||||||
|
|
||||||
# Session configuration
|
# Session configuration
|
||||||
|
|
@ -47,10 +50,6 @@ def create_web_app() -> Flask:
|
||||||
app.add_url_rule("/sitemap.xml", endpoint="web.sitemap", view_func=sitemap_response)
|
app.add_url_rule("/sitemap.xml", endpoint="web.sitemap", view_func=sitemap_response)
|
||||||
app.add_url_rule("/robots.txt", endpoint="web.robots", view_func=robots_txt)
|
app.add_url_rule("/robots.txt", endpoint="web.robots", view_func=robots_txt)
|
||||||
|
|
||||||
# Ensure routes are registered
|
|
||||||
from . import routes # noqa: F401
|
|
||||||
|
|
||||||
# Auth routes are registered via blueprint import side effects
|
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue