STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
users.py
Go to the documentation of this file.
1
"""``GET /api/engine/users`` -- who a design can be shared with.
2
3
A thin route over :mod:`backend.directory`; that module documents where the
4
roster comes from, why it is a union of two sources, and why the outbound call
5
to auth is not an SSRF hole.
6
"""
7
8
from
__future__
import
annotations
9
10
from
fastapi
import
APIRouter, Request
11
12
from
backend
import
directory
13
14
router = APIRouter(prefix=
"/api/engine"
, tags=[
"users"
])
15
16
17
@router.get("/users")
18
async def
list_users
(request: Request):
19
"""The share picker's options. Never fails: an unreachable auth service
20
degrades to whoever already has designs on the volume."""
21
return
directory.roster(request)
backend.routers.users.list_users
list_users(Request request)
Definition
users.py:18
EngineDesign
backend
routers
users.py
Generated by
1.15.0