added switch endpoint
This commit is contained in:
parent
5659f985a5
commit
ef60e72b52
@ -32,6 +32,7 @@ async def fake_get_features(request: Request, _=host_required([Hosts.CLIENTS, Ho
|
||||
return await return_edited_response(upstream_response, data_override)
|
||||
|
||||
|
||||
@app.post("/api/v2/home/users/{id}/switch", tags=[Hosts.CLIENTS.value])
|
||||
@app.get("/api/v2/user", tags=[Hosts.CLIENTS.value, Hosts.PLEX.value])
|
||||
async def fake_get_user(request: Request, _=host_required([Hosts.CLIENTS, Hosts.PLEX])):
|
||||
upstream_response = await call_official(request, request.url.path.lstrip("/"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user