fix: resolve module naming conflict and router method availability
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -7,7 +7,6 @@ use crate::modes::server::common::AppState;
|
|||||||
use crate::modes::server::api::{
|
use crate::modes::server::api::{
|
||||||
item, status
|
item, status
|
||||||
};
|
};
|
||||||
use crate::modes::server::docs;
|
|
||||||
|
|
||||||
pub fn add_routes(router: Router<AppState>) -> Router<AppState> {
|
pub fn add_routes(router: Router<AppState>) -> Router<AppState> {
|
||||||
router
|
router
|
||||||
@@ -22,8 +21,4 @@ pub fn add_routes(router: Router<AppState>) -> Router<AppState> {
|
|||||||
.route("/api/item/:id", get(item::handle_get_item).delete(item::handle_delete_item))
|
.route("/api/item/:id", get(item::handle_get_item).delete(item::handle_delete_item))
|
||||||
.route("/api/item/:id/meta", get(item::handle_get_item_meta))
|
.route("/api/item/:id/meta", get(item::handle_get_item_meta))
|
||||||
.route("/api/item/:id/content", get(item::handle_get_content))
|
.route("/api/item/:id/content", get(item::handle_get_content))
|
||||||
|
|
||||||
// Documentation endpoints
|
|
||||||
.route("/openapi.json", get(docs::handle_openapi))
|
|
||||||
.route("/swagger/", get(docs::handle_swagger_ui))
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user