[1/4] Remove the FastAPI /hello test route

Message ID 20200604195934.GA893581@tsubame.mg0.fr
State New
Headers show
Series [1/4] Remove the FastAPI /hello test route | expand

Commit Message

Frédéric Mangano-Tarumi June 4, 2020, 7:59 p.m. UTC
---
 aurweb/asgi.py  | 5 -----
 aurweb/spawn.py | 3 ---
 2 files changed, 8 deletions(-)

Patch

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")};
-                }}
             }}
         }}
     """)