Move enableRouteOverview call near other routes
This commit is contained in:
parent
4f8366b966
commit
85dfedfa6f
@ -183,6 +183,7 @@ public final class APIv3 {
|
||||
get("/chatFilterList", new GETChatFilterList(), gson::toJson);
|
||||
get("/dump/:type", new GETDump(), gson::toJson);
|
||||
get("/whoami", new GETWhoAmI(), gson::toJson);
|
||||
enableRouteOverview("/routes");
|
||||
|
||||
get("/grant/:id", new GETGrant(), gson::toJson);
|
||||
get("/grants", new GETGrants(), gson::toJson);
|
||||
@ -239,8 +240,6 @@ public final class APIv3 {
|
||||
delete("/user/:id/meta/:serverGroup", new DELETEUserMeta(), gson::toJson);
|
||||
delete("/user/:id/punishment", new DELETEUserPunishment(), gson::toJson);
|
||||
|
||||
enableRouteOverview("/routes");
|
||||
|
||||
// There's no way to do a JSON 404 page w/o doing this :(
|
||||
get("/*", new NotFound(), gson::toJson);
|
||||
post("/*", new NotFound(), gson::toJson);
|
||||
|
Loading…
Reference in New Issue
Block a user