mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-30 18:12:47 +00:00
17 lines
412 B
TypeScript
17 lines
412 B
TypeScript
import { GET, POST, DELETE } from './request';
|
|
import { UserOpenApiKey } from '@/types/openapi';
|
|
/**
|
|
* crete a api key
|
|
*/
|
|
export const createAOpenApiKey = () => POST<string>('/openapi/postKey');
|
|
|
|
/**
|
|
* get api keys
|
|
*/
|
|
export const getOpenApiKeys = () => GET<UserOpenApiKey[]>('/openapi/getKeys');
|
|
|
|
/**
|
|
* delete api by id
|
|
*/
|
|
export const delOpenApiById = (id: string) => DELETE(`/openapi/delKey?id=${id}`);
|