Created the PingRoute.java

This commit is contained in:
Mathias Wagner 2024-02-13 18:41:03 +01:00
parent b0ff5fd8de
commit b0c3633cad
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

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!");
}
}