mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-21 19:34:42 +01:00
Refactor dispatch (now called HTTP) server (pt. 1)
This commit is contained in:
16
src/main/java/emu/grasscutter/server/http/Router.java
Normal file
16
src/main/java/emu/grasscutter/server/http/Router.java
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user