Added run if main

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

View file

@ -36,4 +36,8 @@ async def slug_only(slug: str):
if slug == "favicon.ico": if slug == "favicon.ico":
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)