Skip to content

Commit 4b15071

Browse files
committed
feat(luminork): wire up bulk component endpoints in router
Add routes for all four bulk component operations: - POST /create_many - Bulk component creation - PUT /update_many - Bulk component updates - DELETE /delete_many - Bulk component soft-deletion - POST /erase_many - Bulk component hard-deletion Completes the routing layer for bulk component operations, making all endpoints accessible via the API.
1 parent 5ea1f4f commit 4b15071

File tree

1 file changed

+16
-0
lines changed
  • lib/luminork-server/src/service/v1/components

1 file changed

+16
-0
lines changed

lib/luminork-server/src/service/v1/components/mod.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,22 @@ pub fn routes() -> Router<AppState> {
650650
Router::new()
651651
.route("/", post(create_component::create_component))
652652
.route("/", get(list_components::list_components))
653+
.route(
654+
"/create_many",
655+
post(create_many_components::create_many_components),
656+
)
657+
.route(
658+
"/update_many",
659+
put(update_many_components::update_many_components),
660+
)
661+
.route(
662+
"/delete_many",
663+
delete(delete_many_components::delete_many_components),
664+
)
665+
.route(
666+
"/erase_many",
667+
post(erase_many_components::erase_many_components),
668+
)
653669
.route("/find", get(find_component::find_component))
654670
.route("/search", post(search_components::search_components))
655671
.route(

0 commit comments

Comments
 (0)