Skip to content

Commit 564df07

Browse files
committed
docs: move comment
1 parent a8c2f84 commit 564df07

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/web/api/client/v1/client.rs

-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ impl Client {
9292
///
9393
/// Will panic if the request fails.
9494
pub async fn get_tags(&self) -> TextResponse {
95-
// code-review: some endpoint are using plural
96-
// (for instance, `get_categories`) and some singular.
9795
self.http_client.get("/tags", Query::empty()).await.unwrap()
9896
}
9997

src/web/api/server/v1/routes.rs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pub const API_VERSION_URL_PREFIX: &str = "v1";
2020
#[allow(clippy::needless_pass_by_value)]
2121
pub fn router(app_data: Arc<AppData>) -> Router {
2222
// code-review: should we use plural for the resource prefix: `users`, `categories`, `tags`?
23+
// Some endpoint are using plural (for instance, `get_categories`) and some singular.
2324
// See: https://stackoverflow.com/questions/6845772/should-i-use-singular-or-plural-name-convention-for-rest-resources
2425

2526
let v1_api_routes = Router::new()

0 commit comments

Comments
 (0)