File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ pub const API_VERSION_URL_PREFIX: &str = "v1";
2020#[ allow( clippy:: needless_pass_by_value) ]
2121pub 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 ( )
You can’t perform that action at this time.
0 commit comments