Merge remote-tracking branch 'arcbtc/FastAPI' into benarcfastapi

This commit is contained in:
Ben Arc 2021-08-20 18:43:20 +01:00
commit 58a498d9bf

View file

@ -7,14 +7,14 @@ from . import tpos_ext
from .crud import get_tpos
@tpos_ext.route("/")
@tpos_ext.get("/")
@validate_uuids(["usr"], required=True)
@check_user_exists()
async def index():
return await render_template("tpos/index.html", user=g.user)
@tpos_ext.route("/<tpos_id>")
@tpos_ext.get("/{tpos_id}")
async def tpos(tpos_id):
tpos = await get_tpos(tpos_id)
if not tpos: