Fix paths
This commit is contained in:
parent
e1bc89c4e7
commit
6b12525d62
@ -12,7 +12,7 @@ import java.net.http.HttpResponse;
|
|||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
|
|
||||||
public class CheckRoute implements Route {
|
public class CheckRoute implements Route {
|
||||||
// Route: "/api/check/:link"
|
// Route: "/rickrollprot/check/:link"
|
||||||
@Override
|
@Override
|
||||||
public Object handle(Request req, Response res) throws Exception {
|
public Object handle(Request req, Response res) throws Exception {
|
||||||
boolean isRickRoll = false;
|
boolean isRickRoll = false;
|
||||||
|
@ -6,6 +6,6 @@ public class Server {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
port(8080);
|
port(8080);
|
||||||
|
|
||||||
get("/api/check/:link", new CheckRoute());
|
get("/rickrollprot/check/:link", new CheckRoute());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user