mirror of https://github.com/langgenius/dify.git
18 lines
306 B
TypeScript
18 lines
306 B
TypeScript
import { get, post } from './base'
|
|
|
|
export const fetchAppList = () => {
|
|
return get('/explore/apps')
|
|
}
|
|
|
|
export const fetchInstalledAppList = () => {
|
|
return get('/installed-apps')
|
|
}
|
|
|
|
export const installApp = (id: string) => {
|
|
return post('/installed-apps', {
|
|
body: {
|
|
app_id: id
|
|
}
|
|
})
|
|
}
|