This commit is contained in:
ryan
2026-07-13 15:08:40 +08:00
parent 08e8eea932
commit 1eff7878a1
441 changed files with 26491 additions and 18405 deletions
@@ -1,8 +1,9 @@
import {OpenFlareBaseService} from './base.service';
import type {ProxyRouteItem, ProxyRouteMutationPayload} from './types';
import { OpenFlareBaseService } from './base.service';
import type { ProxyRouteItem, ProxyRouteMutationPayload } from './types';
export class ProxyRouteService extends OpenFlareBaseService {
protected static override readonly basePath: string = '/api/v1/d/proxy-routes';
protected static override readonly basePath: string =
'/api/v1/d/proxy-routes';
static async list(): Promise<ProxyRouteItem[]> {
return this.get<ProxyRouteItem[]>('/');
@@ -12,7 +13,9 @@ export class ProxyRouteService extends OpenFlareBaseService {
return this.get<ProxyRouteItem>(`/${id}`);
}
static async create(payload: ProxyRouteMutationPayload): Promise<ProxyRouteItem> {
static async create(
payload: ProxyRouteMutationPayload,
): Promise<ProxyRouteItem> {
return this.post<ProxyRouteItem>('/', payload);
}
@@ -26,4 +29,4 @@ export class ProxyRouteService extends OpenFlareBaseService {
static async deleteById(id: number): Promise<void> {
return this.post<void>(`/${id}/delete`);
}
}
}