mirror of
https://codeberg.org/gothub/RandomInstance
synced 2024-12-06 19:16:49 +01:00
Forgot to replace the first redirect occurence.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user