summaryrefslogtreecommitdiffstats
path: root/aurweb
diff options
context:
space:
mode:
authorFrédéric Mangano-Tarumi <fmang@mg0.fr>2020-06-04 21:59:34 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2021-02-20 17:24:30 +0100
commit0e3bd8b5969f3c3d6ba9273b15ae1e093fc934e2 (patch)
tree286622a31e33a134ebe82aa33e597310ddd8bd53 /aurweb
parent8c868e088c8becc7640327db2e5e2a1cb10bab41 (diff)
downloadaur-0e3bd8b5969f3c3d6ba9273b15ae1e093fc934e2.tar.gz
aur-0e3bd8b5969f3c3d6ba9273b15ae1e093fc934e2.tar.xz
Remove the FastAPI /hello test route
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'aurweb')
-rw-r--r--aurweb/asgi.py5
-rw-r--r--aurweb/spawn.py3
2 files changed, 0 insertions, 8 deletions
diff --git a/aurweb/asgi.py b/aurweb/asgi.py
index 5f30471a..9bb71ecc 100644
--- a/aurweb/asgi.py
+++ b/aurweb/asgi.py
@@ -1,8 +1,3 @@
from fastapi import FastAPI
app = FastAPI()
-
-
-@app.get("/hello/")
-async def hello():
- return {"message": "Hello from FastAPI!"}
diff --git a/aurweb/spawn.py b/aurweb/spawn.py
index 0506afa4..7fe59e65 100644
--- a/aurweb/spawn.py
+++ b/aurweb/spawn.py
@@ -61,9 +61,6 @@ def generate_nginx_config():
location / {{
proxy_pass http://{aurweb.config.get("php", "bind_address")};
}}
- location /hello {{
- proxy_pass http://{aurweb.config.get("fastapi", "bind_address")};
- }}
}}
}}
""")