mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
App template market (#2337)
* feat: add app template market (#2012) * feat: add app template market * fix * fix * i18n * fix * perf: template market ux * perf: simple mode app ui * perf: tempalte modal ui * perf: tempalte market ui * perf: template position * feat: create app modal * regiter default app * perf: icon * change templates position (#2331) * change templates position * fix * perf: template market ux --------- Co-authored-by: heheer <heheer@sealos.io>
This commit is contained in:
11
projects/app/src/web/core/app/api/template.ts
Normal file
11
projects/app/src/web/core/app/api/template.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { GET } from '@/web/common/api/request';
|
||||
import {
|
||||
TemplateMarketItemType,
|
||||
TemplateMarketListItemType
|
||||
} from '@fastgpt/global/core/workflow/type';
|
||||
|
||||
export const getTemplateMarketItemList = () =>
|
||||
GET<TemplateMarketListItemType[]>('/core/app/template/list');
|
||||
|
||||
export const getTemplateMarketItemDetail = (data: { templateId: string }) =>
|
||||
GET<TemplateMarketItemType>(`/core/app/template/detail`, data);
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user