Class HttpServer.UnhandledRequestRouter

java.lang.Object
emu.grasscutter.server.http.HttpServer.UnhandledRequestRouter
All Implemented Interfaces:
Router
Enclosing class:
HttpServer

public static class HttpServer.UnhandledRequestRouter extends Object implements Router
Handles unhandled endpoints on the Express application.
  • Constructor Details

    • UnhandledRequestRouter

      public UnhandledRequestRouter()
  • Method Details

    • applyRoutes

      public void applyRoutes(express.Express express, io.javalin.Javalin handle)
      Description copied from interface: Router
      Called when the router is initialized by Express.
      Specified by:
      applyRoutes in interface Router
      Parameters:
      express - An Express instance.