mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-20 10:45:52 +00:00
feat: openapi crd
This commit is contained in:
@@ -3,14 +3,14 @@ import { UserOpenApiKey } from '@/types/openapi';
|
||||
/**
|
||||
* crete a api key
|
||||
*/
|
||||
export const createAApiKey = () => POST('/openapi/postKey');
|
||||
export const createAOpenApiKey = () => POST<string>('/openapi/postKey');
|
||||
|
||||
/**
|
||||
* get api keys
|
||||
*/
|
||||
export const getApiKeys = () => GET<UserOpenApiKey[]>('/openapi/getKeys');
|
||||
export const getOpenApiKeys = () => GET<UserOpenApiKey[]>('/openapi/getKeys');
|
||||
|
||||
/**
|
||||
* delete api by id
|
||||
*/
|
||||
export const delApiById = (id: string) => DELETE(`/openapi/delKet?id=${id}`);
|
||||
export const delOpenApiById = (id: string) => DELETE(`/openapi/delKet?id=${id}`);
|
||||
|
Reference in New Issue
Block a user