15 lines
311 B
Python
15 lines
311 B
Python
from __future__ import annotations
|
|
|
|
from quart import Quart, url_for
|
|
|
|
from repub.pages import admin_page
|
|
|
|
|
|
def create_app() -> Quart:
|
|
app = Quart(__name__)
|
|
|
|
@app.get("/")
|
|
async def index() -> str:
|
|
return str(admin_page(stylesheet_href=url_for("static", filename="app.css")))
|
|
|
|
return app
|