Fix incorrect path
This commit is contained in:
@@ -151,7 +151,7 @@ export namespace Endpoints {
|
||||
};
|
||||
export type get_Get_upstream_target = {
|
||||
method: "GET";
|
||||
path: "/api/upstream_targets/{upstream_target_id}";
|
||||
path: "/api/nginx/upstream_targets/{upstream_target_id}";
|
||||
requestFormat: "json";
|
||||
parameters: {
|
||||
path: { upstream_target_id: string };
|
||||
@@ -160,7 +160,7 @@ export namespace Endpoints {
|
||||
};
|
||||
export type delete_Remove_upstream_target = {
|
||||
method: "DELETE";
|
||||
path: "/api/upstream_targets/{upstream_target_id}";
|
||||
path: "/api/nginx/upstream_targets/{upstream_target_id}";
|
||||
requestFormat: "json";
|
||||
parameters: {
|
||||
path: { upstream_target_id: string };
|
||||
@@ -169,7 +169,7 @@ export namespace Endpoints {
|
||||
};
|
||||
export type patch_Update_upstream_target = {
|
||||
method: "PATCH";
|
||||
path: "/api/upstream_targets/{upstream_target_id}";
|
||||
path: "/api/nginx/upstream_targets/{upstream_target_id}";
|
||||
requestFormat: "json";
|
||||
parameters: {
|
||||
path: { upstream_target_id: string };
|
||||
@@ -186,14 +186,14 @@ export namespace Endpoints {
|
||||
};
|
||||
export type get_Get_upstream_list = {
|
||||
method: "GET";
|
||||
path: "/api/upstreams";
|
||||
path: "/api/nginx/upstreams";
|
||||
requestFormat: "json";
|
||||
parameters: never;
|
||||
responses: { 200: Schemas.UpstreamListResponse; 500: unknown };
|
||||
};
|
||||
export type post_Create_upstream = {
|
||||
method: "POST";
|
||||
path: "/api/upstreams";
|
||||
path: "/api/nginx/upstreams";
|
||||
requestFormat: "json";
|
||||
parameters: {
|
||||
body: Schemas.CreateUpstreamRequestBody;
|
||||
@@ -202,7 +202,7 @@ export namespace Endpoints {
|
||||
};
|
||||
export type get_Get_upstream = {
|
||||
method: "GET";
|
||||
path: "/api/upstreams/{upstream_id}";
|
||||
path: "/api/nginx/upstreams/{upstream_id}";
|
||||
requestFormat: "json";
|
||||
parameters: {
|
||||
path: { upstream_id: string };
|
||||
@@ -211,7 +211,7 @@ export namespace Endpoints {
|
||||
};
|
||||
export type delete_Remove_upstream = {
|
||||
method: "DELETE";
|
||||
path: "/api/upstreams/{upstream_id}";
|
||||
path: "/api/nginx/upstreams/{upstream_id}";
|
||||
requestFormat: "json";
|
||||
parameters: {
|
||||
path: { upstream_id: string };
|
||||
@@ -220,7 +220,7 @@ export namespace Endpoints {
|
||||
};
|
||||
export type patch_Update_upstream = {
|
||||
method: "PATCH";
|
||||
path: "/api/upstreams/{upstream_id}";
|
||||
path: "/api/nginx/upstreams/{upstream_id}";
|
||||
requestFormat: "json";
|
||||
parameters: {
|
||||
path: { upstream_id: string };
|
||||
@@ -231,7 +231,7 @@ export namespace Endpoints {
|
||||
};
|
||||
export type post_Add_upstream_target = {
|
||||
method: "POST";
|
||||
path: "/api/upstreams/{upstream_id}/targets";
|
||||
path: "/api/nginx/upstreams/{upstream_id}/targets";
|
||||
requestFormat: "json";
|
||||
parameters: {
|
||||
body: Schemas.CreateUpstreamTargetInfo;
|
||||
@@ -254,23 +254,23 @@ export type EndpointByMethod = {
|
||||
post: {
|
||||
"/api/auth/init_admin": Endpoints.post_Init_admin;
|
||||
"/api/auth/login": Endpoints.post_Login;
|
||||
"/api/upstreams": Endpoints.post_Create_upstream;
|
||||
"/api/upstreams/{upstream_id}/targets": Endpoints.post_Add_upstream_target;
|
||||
"/api/nginx/upstreams": Endpoints.post_Create_upstream;
|
||||
"/api/nginx/upstreams/{upstream_id}/targets": Endpoints.post_Add_upstream_target;
|
||||
};
|
||||
get: {
|
||||
"/api/health/info": Endpoints.get_Get_health_info;
|
||||
"/api/upstream_targets/{upstream_target_id}": Endpoints.get_Get_upstream_target;
|
||||
"/api/upstreams": Endpoints.get_Get_upstream_list;
|
||||
"/api/upstreams/{upstream_id}": Endpoints.get_Get_upstream;
|
||||
"/api/nginx/upstream_targets/{upstream_target_id}": Endpoints.get_Get_upstream_target;
|
||||
"/api/nginx/upstreams": Endpoints.get_Get_upstream_list;
|
||||
"/api/nginx/upstreams/{upstream_id}": Endpoints.get_Get_upstream;
|
||||
"/api/user/me": Endpoints.get_Get_user_info;
|
||||
};
|
||||
delete: {
|
||||
"/api/upstream_targets/{upstream_target_id}": Endpoints.delete_Remove_upstream_target;
|
||||
"/api/upstreams/{upstream_id}": Endpoints.delete_Remove_upstream;
|
||||
"/api/nginx/upstream_targets/{upstream_target_id}": Endpoints.delete_Remove_upstream_target;
|
||||
"/api/nginx/upstreams/{upstream_id}": Endpoints.delete_Remove_upstream;
|
||||
};
|
||||
patch: {
|
||||
"/api/upstream_targets/{upstream_target_id}": Endpoints.patch_Update_upstream_target;
|
||||
"/api/upstreams/{upstream_id}": Endpoints.patch_Update_upstream;
|
||||
"/api/nginx/upstream_targets/{upstream_target_id}": Endpoints.patch_Update_upstream_target;
|
||||
"/api/nginx/upstreams/{upstream_id}": Endpoints.patch_Update_upstream;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user