republisher/repub/web.py

16 lines
311 B
Python
Raw Normal View History

2026-03-30 11:42:13 +02:00
from __future__ import annotations
2026-03-30 12:13:04 +02:00
from quart import Quart, url_for
from repub.pages import admin_page
2026-03-30 11:42:13 +02:00
def create_app() -> Quart:
app = Quart(__name__)
@app.get("/")
async def index() -> str:
2026-03-30 12:13:04 +02:00
return str(admin_page(stylesheet_href=url_for("static", filename="app.css")))
2026-03-30 11:42:13 +02:00
return app