Router.java 353 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
}