Package emu.grasscutter.server.http
Class HttpServer.UnhandledRequestRouter
java.lang.Object
emu.grasscutter.server.http.HttpServer.UnhandledRequestRouter
- All Implemented Interfaces:
Router
- Enclosing class:
- HttpServer
Handles unhandled endpoints on the Express application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRoutes(express.Express express, io.javalin.Javalin handle) Called when the router is initialized by Express.
-
Constructor Details
-
UnhandledRequestRouter
public UnhandledRequestRouter()
-
-
Method Details
-
applyRoutes
public void applyRoutes(express.Express express, io.javalin.Javalin handle) Description copied from interface:RouterCalled when the router is initialized by Express.- Specified by:
applyRoutesin interfaceRouter- Parameters:
express- An Express instance.
-