Skip to content

Commit

Permalink
WebSockets Next: Dev UI - display endpoints on the 404 page
Browse files Browse the repository at this point in the history
- resolves quarkusio#39446
  • Loading branch information
mkouba committed Mar 20, 2024
1 parent 8d109e0 commit d67722a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public void registerRoutes(WebSocketServerRecorder recorder, HttpRootPathBuildIt
for (GeneratedEndpointBuildItem endpoint : generatedEndpoints) {
RouteBuildItem.Builder builder = RouteBuildItem.builder()
.route(httpRootPath.relativePath(endpoint.path))
.displayOnNotFoundPage("WebSocket Endpoint")
.handlerType(HandlerType.NORMAL)
.handler(recorder.createEndpointHandler(endpoint.generatedClassName));
routes.produce(builder.build());
Expand Down

0 comments on commit d67722a

Please sign in to comment.