ReferenceHTTP API
adminUi
The adminUi router: 2 methods of the admin-ui capability, with tier, scope, input and output.
Capability admin-ui · scope system · mode singleton · source packages/types/src/capabilities/admin-ui.cap.ts:8.
Every method is called at /trpc/adminUi.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStaticDir | query | admin | admin only | no |
getVersion | query | admin | admin only | no |
adminUi.getStaticDir
- Kind: query —
GET /trpc/adminUi.getStaticDir - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=adminUi.getStaticDiron your hub
Input
voidOutput
{ staticDir: string }adminUi.getVersion
- Kind: query —
GET /trpc/adminUi.getVersion - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=adminUi.getVersionon your hub
Input
voidOutput
{ version: string }