Package emu.grasscutter.server.http
Interface Router
- All Known Implementing Classes:
AnnouncementsHandler,DispatchHandler,GachaHandler,GenericHandler,HttpServer.DefaultRequestRouter,HttpServer.UnhandledRequestRouter,LogHandler,RegionHandler
public interface Router
Defines routes for an
Express instance.-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRoutes(express.Express express, io.javalin.Javalin handle) Called when the router is initialized by Express.
-
Method Details
-
applyRoutes
void applyRoutes(express.Express express, io.javalin.Javalin handle) Called when the router is initialized by Express.- Parameters:
express- An Express instance.
-