applications
Application listing and icons for authenticated users, and the pictures every page may load.
attributelogger= logging.getLogger(__name__)attributerouter= APIRouter(route_class=EncryptedRoute)attributepublic_router= APIRouter()funcuser_can_access(app_users, app_groups, username, groups) -> boolTell whether a user may see an application.
paramapp_userslist[str]Usernames allowed by the app ("all" allows everyone).
paramapp_groupslist[str]Groups allowed by the app ("all" allows everyone).
paramusernamestrThe user.
paramgroupslist[str] | strThe groups the user is in, or a single group name.
Returns
boolTrue when the user, or one of their groups, is allowed.
funcget_applications(user=Depends(verify_token)) -> list[Application]List the applications the calling user may launch.
paramuserdict[str, Any]= Depends(verify_token)Returns
list[app.models.Application]funcget_app_icon(app_id, user=Depends(verify_token)) -> dict[str, str]Return a custom-uploaded app icon as base64 inside JSON.
paramapp_idstrparamuserdict[str, Any]= Depends(verify_token)Returns
dict[str, str]funcget_logo(name, request) -> ResponseServe a picture a store, a remote, or a home link named, from this node's copy.
paramnamestrparamrequestRequestReturns
fastapi.Response