mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
12 lines
300 B
TypeScript
12 lines
300 B
TypeScript
import { useQuery } from '@tanstack/react-query'
|
|
import { get } from '../base'
|
|
|
|
const NAME_SPACE = 'workspace-permission-keys'
|
|
|
|
export const useWorkspacePermissionKeys = () => {
|
|
return useQuery({
|
|
queryKey: [NAME_SPACE],
|
|
queryFn: () => get('/workspaces/current/rbac/my-permissions'),
|
|
})
|
|
}
|