Skip to content

Commit

Permalink
Simplify /resetSesssionCookie route mapping using SupplierRouteHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Jun 17, 2024
1 parent cadade8 commit 54a75d3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions ng-appserver/src/main/java/ng/appserver/NGApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,8 @@ private NGRouteTable createSystemRoutes() {
systemRoutes.map( NGResourceRequestHandlerDynamic.DEFAULT_PATH + "*", new NGResourceRequestHandlerDynamic() );
systemRoutes.map( NGDirectActionRequestHandler.DEFAULT_PATH + "*", new NGDirectActionRequestHandler() );
systemRoutes.map( WOMPRequestHandler.DEFAULT_PATH, new WOMPRequestHandler() );
systemRoutes.map( "/sessionCookieReset/", ( request ) -> {
return resetSessionCookie();
} );

// FIXME: This is her temporarily while we figure out a "missing slash" problem on a deployed application // Hugi 2024-03-17
systemRoutes.map( "/sessionCookieReset", ( request ) -> {
return resetSessionCookie();
} );

systemRoutes.map( "/sessionCookieReset/", this::resetSessionCookie );
systemRoutes.map( "/sessionCookieReset", this::resetSessionCookie ); // FIXME: This is her temporarily while we figure out a "missing slash" problem on a deployed application // Hugi 2024-03-17
return systemRoutes;
}

Expand Down

0 comments on commit 54a75d3

Please sign in to comment.