mirror of
https://github.com/DarrylNixon/ghostforge
synced 2024-04-22 06:27:20 -07:00
Layout work. Learning how to Alembic.
This commit is contained in:
parent
1fa3d8a372
commit
7598e2c8fc
37 changed files with 806 additions and 173 deletions
15
ghostforge/users.py
Normal file
15
ghostforge/users.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from fastapi import APIRouter
|
||||
from fastapi import Request
|
||||
from fastapi.responses import HTMLResponse
|
||||
|
||||
from templates import templates
|
||||
|
||||
gf = APIRouter()
|
||||
|
||||
|
||||
@gf.get("/user/{id}", response_class=HTMLResponse)
|
||||
async def get_user(request: Request, id: str):
|
||||
crumbs = [("settings", False), ("users", "/users"), (id, False)]
|
||||
return templates.TemplateResponse(
|
||||
"user.html", {"request": request, "crumbs": crumbs, "user": "test", "id": id, "title": f"User {id}"}
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue