From 307c3a57d384067eea586d8407f8b5e432c074c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Gori=C4=8Dar?= Date: Sun, 8 Dec 2024 23:58:22 +0100 Subject: [PATCH] feat!: rename /dictionary/translation endpoints to /dictionary/translations --- kolomoni/src/api/v1/dictionary/translations.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kolomoni/src/api/v1/dictionary/translations.rs b/kolomoni/src/api/v1/dictionary/translations.rs index 9ae0c60..0337436 100644 --- a/kolomoni/src/api/v1/dictionary/translations.rs +++ b/kolomoni/src/api/v1/dictionary/translations.rs @@ -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 @@ -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 @@ -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) }