Refactor dispatch (now called HTTP) server (pt. 1)

This commit is contained in:
KingRainbow44
2022-05-13 11:39:40 -04:00
parent a0067b664e
commit 840f4706b5
17 changed files with 828 additions and 67 deletions

View File

@@ -0,0 +1,16 @@
package emu.grasscutter.server.http;
import express.Express;
import io.javalin.Javalin;
/**
* Defines routes for an {@link Express} instance.
*/
public interface Router {
/**
* Called when the router is initialized by Express.
* @param express An Express instance.
*/
void applyRoutes(Express express, Javalin handle);
}