mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 02:42:34 +08:00
Refactor dispatch (now called HTTP) server (pt. 1)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user