mirror of
https://github.com/open-webui/open-webui
synced 2024-11-26 05:51:12 +00:00
feat: /ollama head route
This commit is contained in:
parent
2c030218f8
commit
57530d87f6
@ -81,6 +81,12 @@ async def check_url(request: Request, call_next):
|
||||
return response
|
||||
|
||||
|
||||
@app.head("/")
|
||||
@app.get("/")
|
||||
async def get_status():
|
||||
return {"status": True}
|
||||
|
||||
|
||||
@app.get("/urls")
|
||||
async def get_ollama_api_urls(user=Depends(get_admin_user)):
|
||||
return {"OLLAMA_BASE_URLS": app.state.OLLAMA_BASE_URLS}
|
||||
|
Loading…
Reference in New Issue
Block a user