Added run if main

This commit is contained in:
CragglesG 2024-09-29 14:58:14 +01:00
parent acc583b24e
commit 2feead3941

View file

@ -37,3 +37,7 @@ async def slug_only(slug: str):
return HTTPException(404) return HTTPException(404)
else: else:
return RedirectResponse(urls["public"][slug]) return RedirectResponse(urls["public"][slug])
if __name__ == "__main__":
import uvicorn
uvicorn.run(app)