Skip to content

Commit

Permalink
[MODINVSTOR-1243] Add body handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Saba-Zedginidze-EPAM committed Aug 27, 2024
1 parent e957735 commit cbd0c78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/folio/inventory/resources/TenantItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import io.vertx.ext.web.Router;
import io.vertx.ext.web.RoutingContext;
import io.vertx.ext.web.client.WebClient;
import io.vertx.ext.web.handler.BodyHandler;

public class TenantItems {

Expand All @@ -49,6 +50,7 @@ public TenantItems(HttpClient client) {
}

public void register(Router router) {
router.post(TENANT_ITEMS_PATH + "*").handler(BodyHandler.create());
router.post(TENANT_ITEMS_PATH).handler(this::getItemsFromTenants);
}

Expand Down

0 comments on commit cbd0c78

Please sign in to comment.