Fix incorrect path
This commit is contained in:
@@ -83,7 +83,7 @@ impl From<CreateUpstreamRequestBody> for ConcreteCreateUpstreamRequestBody {
|
||||
#[axum::debug_handler]
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/api/upstreams",
|
||||
path = "/api/nginx/upstreams",
|
||||
request_body = CreateUpstreamRequestBody,
|
||||
responses(
|
||||
(status = 200, description = "Upstream created successfully", body = UpstreamInfoResponse),
|
||||
|
||||
@@ -51,7 +51,7 @@ impl From<CreateUpstreamTargetInfo> for ConcreteCreateUpstreamTargetInfo {
|
||||
#[axum::debug_handler]
|
||||
#[utoipa::path(
|
||||
post,
|
||||
path = "/api/upstreams/{upstream_id}/targets",
|
||||
path = "/api/nginx/upstreams/{upstream_id}/targets",
|
||||
request_body = CreateUpstreamTargetInfo,
|
||||
responses(
|
||||
(status = 200, description = "Upstream target created successfully", body = UpstreamTargetInfoResponse),
|
||||
|
||||
@@ -42,7 +42,7 @@ impl From<GetUpstreamParams> for ConcreteGetUpstreamParams {
|
||||
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/api/upstreams",
|
||||
path = "/api/nginx/upstreams",
|
||||
responses(
|
||||
(status = 200, description = "List upstreams", body = UpstreamListResponse),
|
||||
(status = 500, description = "Internal server error"),
|
||||
@@ -72,7 +72,7 @@ pub async fn get_upstream_list(
|
||||
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/api/upstreams/{upstream_id}",
|
||||
path = "/api/nginx/upstreams/{upstream_id}",
|
||||
responses(
|
||||
(status = 200, description = "Get upstream info", body = UpstreamInfoResponse),
|
||||
(status = 404, description = "Not found"),
|
||||
|
||||
@@ -38,7 +38,7 @@ impl From<GetUpstreamTargetsParams> for ConcreteGetUpstreamTargetsParams {
|
||||
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/api/upstream_targets/{upstream_target_id}",
|
||||
path = "/api/nginx/upstream_targets/{upstream_target_id}",
|
||||
responses(
|
||||
(status = 200, description = "Get upstream target info", body = UpstreamTargetInfo),
|
||||
(status = 404, description = "Not found"),
|
||||
|
||||
@@ -16,7 +16,7 @@ use crate::{
|
||||
|
||||
#[utoipa::path(
|
||||
delete,
|
||||
path = "/api/upstreams/{upstream_id}",
|
||||
path = "/api/nginx/upstreams/{upstream_id}",
|
||||
responses(
|
||||
(status = 200, description = "Upstream removed successfully", body = ()),
|
||||
(status = 401, description = "Unauthorized"),
|
||||
|
||||
@@ -16,7 +16,7 @@ use crate::{
|
||||
|
||||
#[utoipa::path(
|
||||
delete,
|
||||
path = "/api/upstream_targets/{upstream_target_id}",
|
||||
path = "/api/nginx/upstream_targets/{upstream_target_id}",
|
||||
responses(
|
||||
(status = 200, description = "Upstream target removed successfully", body = ()),
|
||||
(status = 401, description = "Unauthorized"),
|
||||
|
||||
@@ -50,7 +50,7 @@ impl From<UpdateUpstreamRequestBody> for UpdateUpstreamInfo {
|
||||
|
||||
#[utoipa::path(
|
||||
patch,
|
||||
path = "/api/upstreams/{upstream_id}",
|
||||
path = "/api/nginx/upstreams/{upstream_id}",
|
||||
request_body = UpdateUpstreamRequestBody,
|
||||
responses(
|
||||
(status = 200, description = "Upstream updated successfully", body = UpdateUpstreamInfoResponse),
|
||||
|
||||
@@ -42,7 +42,7 @@ impl From<UpdateUpstreamTargetRequestBody> for UpdateUpstreamTargetInfo {
|
||||
|
||||
#[utoipa::path(
|
||||
patch,
|
||||
path = "/api/upstream_targets/{upstream_target_id}",
|
||||
path = "/api/nginx/upstream_targets/{upstream_target_id}",
|
||||
request_body = UpdateUpstreamTargetRequestBody,
|
||||
responses(
|
||||
(status = 200, description = "Upstream target updated successfully", body = UpdateUpstreamTargetInfoResponse),
|
||||
|
||||
Reference in New Issue
Block a user