Created the PingRoute.java

This commit is contained in:
2024-02-13 18:41:03 +01:00
parent b0ff5fd8de
commit b0c3633cad

View File

@ -0,0 +1,18 @@
package de.gnmyt.mcdash.routes;
import de.gnmyt.mcdash.handler.DefaultHandler;
import de.gnmyt.mcdash.http.Request;
import de.gnmyt.mcdash.http.ResponseController;
public class PingRoute extends DefaultHandler {
@Override
public String path() {
return "ping";
}
@Override
public void get(Request request, ResponseController response) throws Exception {
response.text("Pong!");
}
}