summaryrefslogtreecommitdiff
path: root/app/routers/web.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/routers/web.py')
-rw-r--r--app/routers/web.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/app/routers/web.py b/app/routers/web.py
deleted file mode 100644
index 678c63e..0000000
--- a/app/routers/web.py
+++ /dev/null
@@ -1,9 +0,0 @@
-from fastapi import APIRouter, Request
-
-router = APIRouter()
-
-@router.get("/")
-async def main_page(request: Request):
- images = request.app.state.image_service.get_all_images()
- return request.app.state.templates.TemplateResponse(
- request=request, name="index.html", context={"images": images}) \ No newline at end of file