Skip to content

Commit

Permalink
bugfix: fix redoc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
densumesh authored and skeptrunedev committed Apr 9, 2024
1 parent ffbf3b9 commit be5f173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/src/handlers/group_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ pub struct AddChunkToGroupData {
/// Route to add a chunk to a group.
#[utoipa::path(
post,
path = "/chunk_group/chunk",
path = "/chunk_group/chunk/{group_id}",
context_path = "/api",
tag = "chunk_group",
request_body(content = AddChunkToGroupData, description = "JSON request payload to add a chunk to a group (bookmark it)", content_type = "application/json"),
Expand Down
6 changes: 1 addition & 5 deletions server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,16 +656,12 @@ pub async fn main() -> std::io::Result<()> {
web::post().to(handlers::group_handler::get_recommended_groups),
),
)
.service(
web::resource("/chunk")
.route(web::post().to(handlers::group_handler::add_chunk_to_group)),
)
.service(
web::resource("/chunk/{chunk_group_id}")
.route(
web::delete()
.to(handlers::group_handler::remove_chunk_from_group),
),
).route(web::post().to(handlers::group_handler::add_chunk_to_group))
)
.service(
web::scope("/tracking_id/{tracking_id}")
Expand Down

0 comments on commit be5f173

Please sign in to comment.