Skip to content

Commit

Permalink
Remove confusing addFileRoute API
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanGiles committed Feb 1, 2024
1 parent 6c47088 commit 853f9e5
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ public void addStringRoute(final String path, final Function<Request, String> ha
_addRoute(Method.GET, path, request -> new StringResponse(handler.apply(request)));
}

public void addFileRoute(String path) {
addFileRoute(path, DEFAULT_WEB_ROOT);
}

public void addFileRoute(String path, final File webroot) {
if (path == null) {
path = "/";
Expand Down

0 comments on commit 853f9e5

Please sign in to comment.