Class RegionHandler
java.lang.Object
emu.grasscutter.server.http.dispatch.RegionHandler
- All Implemented Interfaces:
Router
Handles requests related to region queries.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRoutes(express.Express express, io.javalin.Javalin handle) Called when the router is initialized by Express.static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRspGets the current region query.
-
Constructor Details
-
RegionHandler
public RegionHandler()
-
-
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.
-
getCurrentRegion
public static emu.grasscutter.net.proto.QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRsp getCurrentRegion()Gets the current region query.- Returns:
- A
QueryCurrRegionHttpRspOuterClass.QueryCurrRegionHttpRspobject.
-