mirror of https://github.com/langgenius/dify.git
17 lines
306 B
TypeScript
17 lines
306 B
TypeScript
import {
|
|
get,
|
|
} from './base'
|
|
import type {
|
|
SiteInfo,
|
|
} from '@/models/share'
|
|
|
|
type TryAppInfo = {
|
|
name: string
|
|
mode: 'chat' | 'text-generation' | 'workflow'
|
|
site: SiteInfo
|
|
}
|
|
|
|
export const fetchTryAppInfo = async (appId: string) => {
|
|
return get(`/trial-apps/${appId}`) as Promise<TryAppInfo>
|
|
}
|