mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
feat: adding background jobs ui page and apis - requires user is_admin to be set to true
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { orgStore } from "@/auth/org.ts"
|
||||
import { authStore } from "@/auth/store.ts"
|
||||
import {
|
||||
ArcherAdminApi,
|
||||
AuthApi,
|
||||
Configuration,
|
||||
LabelsApi,
|
||||
MeApi,
|
||||
@@ -61,6 +63,10 @@ function makeApiClient<T>(Ctor: new (cfg: Configuration) => T): T {
|
||||
return new Ctor(makeConfig())
|
||||
}
|
||||
|
||||
export function makeAuthApi() {
|
||||
return makeApiClient(AuthApi)
|
||||
}
|
||||
|
||||
export function makeMeApi() {
|
||||
return makeApiClient(MeApi)
|
||||
}
|
||||
@@ -88,3 +94,7 @@ export function makeTaintsApi() {
|
||||
export function makeLabelsApi() {
|
||||
return makeApiClient(LabelsApi)
|
||||
}
|
||||
|
||||
export function makeArcherAdminApi() {
|
||||
return makeApiClient(ArcherAdminApi)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user