I've just ran into this problem. For instance:
public class PingRoute {
@Path("/ping")
@GET
private ping() {
return Results.ok()
}
}
If I use(PingRoute.class), the ping endpoint is silently ignored. Although I know that we could easily add unit tests to find this error, I think that we could also follow a fail-fast approach and prevent the server from start (giving a nice error message).
What do you guys think? I am happy to give it a shot as soon I get some sort of thumbs up.
I've just ran into this problem. For instance:
If I
use(PingRoute.class), the ping endpoint is silently ignored. Although I know that we could easily add unit tests to find this error, I think that we could also follow a fail-fast approach and prevent the server from start (giving a nice error message).What do you guys think? I am happy to give it a shot as soon I get some sort of thumbs up.