From 4bb74a146c30d5d08c8f4c85ce6701e09cfb3c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Thu, 2 Nov 2023 01:05:19 +0100 Subject: [PATCH] Don't use template directory --- discord_embed/main.py | 3 --- templates/index.html | 14 -------------- 2 files changed, 17 deletions(-) delete mode 100644 templates/index.html diff --git a/discord_embed/main.py b/discord_embed/main.py index 6aa534a..94bf903 100644 --- a/discord_embed/main.py +++ b/discord_embed/main.py @@ -5,7 +5,6 @@ from urllib.parse import urljoin from fastapi import FastAPI, File, Request, UploadFile from fastapi.responses import HTMLResponse, JSONResponse -from fastapi.templating import Jinja2Templates from discord_embed import settings from discord_embed.video_file_upload import do_things @@ -19,8 +18,6 @@ app: FastAPI = FastAPI( }, ) -templates: Jinja2Templates = Jinja2Templates(directory="templates") - @app.post("/uploadfiles/", description="Where to send a POST request to upload files.") async def upload_file(file: UploadFile = File()): # noqa: B008 diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 8b3b5e7..0000000 --- a/templates/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -

discord-nice-embed

- Swagger UI - API documentation -
- ReDoc - Alternative API documentation -
- - -
- - -