Update HttpServer & AuthenticationSystem to use Javalin

This commit is contained in:
Benj
2022-09-01 21:33:03 +08:00
committed by Melledy
parent bf9606222e
commit b5bed6ceef
19 changed files with 963 additions and 260 deletions

View File

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