You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/web/service/enterprise.ts

15 lines
410 B
TypeScript

import { get } from './base'
import type { EnterpriseFeatures } from '@/types/enterprise'
export const getEnterpriseFeatures = () => {
return get<EnterpriseFeatures>('/enterprise-features')
}
export const getSAMLSSOUrl = () => {
return get<{ url: string }>('/enterprise/sso/saml/login')
}
export const getOIDCSSOUrl = () => {
return get<{ url: string; state: string }>('/enterprise/sso/oidc/login')
}