feat: Change endpoint to GET for retrieving OpenRouter API key with basic security check
This commit is contained in:
parent
eef8800716
commit
65ccfeba91
@ -2827,8 +2827,8 @@ async def delete_token_by_user_id(user_id: str):
|
||||
|
||||
# Note: Server shutdown is now handled by the lifespan context manager above
|
||||
|
||||
@app.post("/openrouter-key", response_class=PlainTextResponse)
|
||||
async def update_gurt_stats_internal(request: Request):
|
||||
@app.get("/openrouter-key", response_class=PlainTextResponse)
|
||||
async def get_openrouter_key(request: Request):
|
||||
"""private endpoint return openrouter api key"""
|
||||
global latest_gurt_stats
|
||||
# Basic security check
|
||||
|
Loading…
x
Reference in New Issue
Block a user