Skip to content

Commit

Permalink
feat!: rename /dictionary/translation endpoints to /dictionary/transl…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
simongoricar committed Dec 8, 2024
1 parent b16a3d6 commit 307c3a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kolomoni/src/api/v1/dictionary/translations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ declare_openapi_error_reason_response!(
/// This endpoint requires authentication and the `word.translation:create` permission.
#[utoipa::path(
post,
path = "/dictionary/translation",
path = "/dictionary/translations",
tag = "dictionary:translation",
request_body(
content = TranslationCreationRequest
Expand Down Expand Up @@ -196,7 +196,7 @@ declare_openapi_error_reason_response!(
/// This endpoint requires authentication and the `word.translation:delete` permission.
#[utoipa::path(
delete,
path = "/dictionary/translation",
path = "/dictionary/translations",
tag = "dictionary:translation",
params(
TranslationDeletionRequest
Expand Down Expand Up @@ -333,7 +333,7 @@ pub async fn delete_translation(

#[rustfmt::skip]
pub fn translations_router() -> Scope {
web::scope("/translation")
web::scope("/translations")
.service(create_translation)
.service(delete_translation)
}

0 comments on commit 307c3a5

Please sign in to comment.