Skip to content

Commit

Permalink
- Post mapping handler bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Areeb-Gillani committed Sep 4, 2023
1 parent 207dd65 commit 2dd94c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ plugins {
}

group = "io.github.areebgillani"
version = "0.0.5"
version = "0.0.6"
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "io.github.areebgillani"
artifactId = rootProject.name
version = "0.0.5"
version = "0.0.6"
from(components["java"])
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/github/areebgillani/boost/Booster.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import io.vertx.ext.web.Route;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.RoutingContext;
import io.vertx.ext.web.handler.BodyHandler;
import org.reflections.Reflections;

import java.lang.annotation.Annotation;
Expand Down Expand Up @@ -94,6 +95,7 @@ private Object[] getParams(Method m, RoutingContext context) {
private void deployControllers() throws Exception {
Reflections reflections = new Reflections(basePackage);
Set<Class<?>> controllers = reflections.getTypesAnnotatedWith(RestController.class);
router.route().handler(BodyHandler.create());
for (Class<?> controller : controllers) {
Object controllerInstance = controller.getConstructor().newInstance();
controllerInstanceMap.put(controller.getName(), controllerInstance);
Expand Down Expand Up @@ -135,7 +137,6 @@ private void deployServices() throws Exception {
Reflections reflections = new Reflections(basePackage);
Set<Class<?>> services = reflections.getTypesAnnotatedWith(Service.class);
Set<Class<?>> repos = reflections.getTypesAnnotatedWith(Repository.class);
;
JsonObject workers = config.getJsonObject("workers");
for (Class<?> service : services) {
Supplier<Verticle> myService = () -> {
Expand Down

0 comments on commit 2dd94c8

Please sign in to comment.