From 2feead394159ed69d181cda7cc7a605ef0200ced Mon Sep 17 00:00:00 2001 From: CragglesG <121510295+CragglesG@users.noreply.github.com> Date: Sun, 29 Sep 2024 14:58:14 +0100 Subject: [PATCH] Added run if main --- main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 0db382c..9c12b08 100644 --- a/main.py +++ b/main.py @@ -36,4 +36,8 @@ async def slug_only(slug: str): if slug == "favicon.ico": return HTTPException(404) else: - return RedirectResponse(urls["public"][slug]) \ No newline at end of file + return RedirectResponse(urls["public"][slug]) + +if __name__ == "__main__": + import uvicorn + uvicorn.run(app) \ No newline at end of file