Server Referencerouters
applications
Application listing and icons for authenticated users.
attributelogger= logging.getLogger(__name__)attributerouter= APIRouter(route_class=EncryptedRoute)funcuser_can_access(app_users, app_groups, username, group) -> 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.
paramgroupstrThe user's effective group.
Returns
boolTrue when access 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]