Forgot to replace the first redirect occurence.

This commit is contained in:
Midou36O
2023-04-03 22:01:49 +00:00
parent e245ce3106
commit 87d199efdf
+1 -1
View File
@@ -11,7 +11,7 @@ app = FastAPI()
def read_root():
return {"Response": "Hello World"}
@app.get("/redirect")
@app.get("/random")
def redirect():
# get GotHub instances json from codeberg
r = requests.get("https://codeberg.org/gothub/gothub-instances/raw/branch/master/instances.json")