mirror of
https://github.com/MichaByte/OnBoard-Live.git
synced 2025-12-06 05:33:40 -05:00
Remove useless and dangerous API route
This commit is contained in:
parent
677ccb2f47
commit
8308b22d89
1 changed files with 0 additions and 9 deletions
|
|
@ -146,15 +146,6 @@ async def get_stream_by_key(stream_key: str):
|
|||
stream if stream else Response(status_code=404, content="404: Stream not found")
|
||||
)
|
||||
|
||||
|
||||
@api.get("/api/v1/user/{user_id}")
|
||||
async def get_user_by_id(user_id: str):
|
||||
await db.connect()
|
||||
user = await db.user.find_first(where={"slack_id": user_id})
|
||||
await db.disconnect()
|
||||
return user if user else Response(status_code=404, content="404: User not found")
|
||||
|
||||
|
||||
@api.get("/api/v1/active_stream")
|
||||
async def get_active_stream():
|
||||
return active_stream["name"] if "name" in active_stream else ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue