Perf/web app authrozation (#22524)
This commit is contained in:
parent
a3ced1b5a6
commit
a324d3942e
35 changed files with 592 additions and 441 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { del, get, patch, post } from './base'
|
||||
import type { App, AppCategory } from '@/models/explore'
|
||||
import type { AccessMode } from '@/models/access-control'
|
||||
|
||||
export const fetchAppList = () => {
|
||||
return get<{
|
||||
|
|
@ -39,3 +40,7 @@ export const updatePinStatus = (id: string, isPinned: boolean) => {
|
|||
export const getToolProviders = () => {
|
||||
return get('/workspaces/current/tool-providers')
|
||||
}
|
||||
|
||||
export const getAppAccessModeByAppId = (appId: string) => {
|
||||
return get<{ accessMode: AccessMode }>(`/enterprise/webapp/app/access-mode?appId=${appId}`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue