0.1.0 boosted

This commit is contained in:
Waylon Walker 2024-04-06 11:26:46 -05:00
parent 126e90084e
commit f29c40d25e
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
11 changed files with 181 additions and 22 deletions

View file

@ -2,6 +2,7 @@ from fastapi import Depends, FastAPI, Request
from fastapi.responses import FileResponse
from htmx_patterns.__about__ import __version__
from htmx_patterns.boosted.router import boosted_router
from htmx_patterns.config import get_config
from htmx_patterns.infinite.router import infinite_router
@ -36,10 +37,11 @@ app = FastAPI(
config = get_config()
app.include_router(infinite_router)
app.include_router(boosted_router)
@app.get("/")
async def read_main(request: Request):
async def index(request: Request):
return config.templates.TemplateResponse("index.html", {"request": request})