Package emu.grasscutter.server.http
Interface Router
- All Known Implementing Classes:
AnnouncementsHandler,DispatchHandler,DocumentationServerHandler,GachaHandler,GenericHandler,HttpServer.DefaultRequestRouter,HttpServer.UnhandledRequestRouter,LogHandler,RegionHandler
public interface Router
Defines routes for an
Javalin instance.-
Method Summary
Modifier and TypeMethodDescriptiondefault io.javalin.JavalinApplies this handler to all endpoint typesvoidapplyRoutes(io.javalin.Javalin javalin) Called when the router is initialized by Express.
-
Method Details
-
applyRoutes
void applyRoutes(io.javalin.Javalin javalin) Called when the router is initialized by Express.- Parameters:
javalin- A Javalin instance.
-
allRoutes
default io.javalin.Javalin allRoutes(io.javalin.Javalin javalin, String path, io.javalin.http.Handler ctx) Applies this handler to all endpoint types- Parameters:
javalin- A Javalin instance.path-ctx-- Returns:
- The Javalin instance.
-