UPDATE: VERSION-20260331
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
import { HttpRequestClient } from '@/utils/request';
|
||||
import type { BasicResponse } from '@/types';
|
||||
import type { PlatformListableResponse } from './types';
|
||||
import type { NodeCommandListResponse, PlatformListableResponse } from './types';
|
||||
|
||||
const req = HttpRequestClient.create<BasicResponse>({
|
||||
baseURL: '/api',
|
||||
@@ -18,4 +18,8 @@ const req = HttpRequestClient.create<BasicResponse>({
|
||||
|
||||
export const findAllBasicPlatforms = (): Promise<PlatformListableResponse> => {
|
||||
return req.get<PlatformListableResponse>('/system/firerule/platforms/basic');
|
||||
};
|
||||
};
|
||||
|
||||
export const findAllNodeCommands = (): Promise<NodeCommandListResponse> => {
|
||||
return req.get<NodeCommandListResponse>('/node/command/all')
|
||||
}
|
||||
Reference in New Issue
Block a user