mirror of
https://github.com/simon987/sist2.git
synced 2025-04-19 18:26:43 +00:00
remove trailing slash in other endpoints
This commit is contained in:
parent
5fa2da5eef
commit
b833acf522
@ -74,7 +74,7 @@ async def get_frontend(name: str):
|
|||||||
raise HTTPException(status_code=404)
|
raise HTTPException(status_code=404)
|
||||||
|
|
||||||
|
|
||||||
@app.get("/api/job/")
|
@app.get("/api/job")
|
||||||
async def get_jobs():
|
async def get_jobs():
|
||||||
return list(db["jobs"])
|
return list(db["jobs"])
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ async def update_frontend(name: str, frontend: Sist2Frontend):
|
|||||||
return "ok"
|
return "ok"
|
||||||
|
|
||||||
|
|
||||||
@app.get("/api/task/")
|
@app.get("/api/task")
|
||||||
async def get_tasks():
|
async def get_tasks():
|
||||||
return list(map(lambda t: t.json(), task_queue.tasks()))
|
return list(map(lambda t: t.json(), task_queue.tasks()))
|
||||||
|
|
||||||
@ -309,7 +309,7 @@ async def stop_frontend(name: str):
|
|||||||
del RUNNING_FRONTENDS[name]
|
del RUNNING_FRONTENDS[name]
|
||||||
|
|
||||||
|
|
||||||
@app.get("/api/frontend/")
|
@app.get("/api/frontend")
|
||||||
async def get_frontends():
|
async def get_frontends():
|
||||||
res = []
|
res = []
|
||||||
for frontend in db["frontends"]:
|
for frontend in db["frontends"]:
|
||||||
@ -319,7 +319,7 @@ async def get_frontends():
|
|||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
@app.get("/api/search_backend/")
|
@app.get("/api/search_backend")
|
||||||
async def get_search_backends():
|
async def get_search_backends():
|
||||||
return list(db["search_backends"])
|
return list(db["search_backends"])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user