fix: update route parameter syntax from :item_id to {item_id}
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -46,9 +46,9 @@ pub fn add_routes(router: Router<AppState>) -> Router<AppState> {
|
|||||||
.route("/api/item/latest", get(item::handle_get_item_latest))
|
.route("/api/item/latest", get(item::handle_get_item_latest))
|
||||||
.route("/api/item/latest/meta", get(item::handle_get_item_latest_meta))
|
.route("/api/item/latest/meta", get(item::handle_get_item_latest_meta))
|
||||||
.route("/api/item/latest/content", get(item::handle_get_item_latest_content))
|
.route("/api/item/latest/content", get(item::handle_get_item_latest_content))
|
||||||
.route("/api/item/:item_id", get(item::handle_get_item))
|
.route("/api/item/{item_id}", get(item::handle_get_item))
|
||||||
.route("/api/item/:item_id/meta", get(item::handle_get_item_meta))
|
.route("/api/item/{item_id}/meta", get(item::handle_get_item_meta))
|
||||||
.route("/api/item/:item_id/content", get(item::handle_get_item_content))
|
.route("/api/item/{item_id}/content", get(item::handle_get_item_content))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn add_docs_routes(router: Router<AppState>) -> Router<AppState> {
|
pub fn add_docs_routes(router: Router<AppState>) -> Router<AppState> {
|
||||||
|
|||||||
Reference in New Issue
Block a user