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
3A thin route over :mod:`backend.directory`; that module documents where the
4roster comes from, why it is a union of two sources, and why the outbound call
5to auth is not an SSRF hole.
6"""
7
8from __future__ import annotations
9
10from fastapi import APIRouter, Request
11
12from backend import directory
13
14router = APIRouter(prefix="/api/engine", tags=["users"])
15
16
17@router.get("/users")
18async 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)
list_users(Request request)
Definition users.py:18