Use same path as youtube (#75)

This commit is contained in:
w1nst0n 2021-06-26 10:19:24 +00:00 committed by GitHub
parent 4ac4f0d8ea
commit 9e382483d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ public class ServerLauncher extends MultithreadedHttpServerLauncher {
} catch (Exception e) {
return getErrorResponse(e);
}
})).map("/channels/:channelId", AsyncServlet.ofBlocking(executor, request -> {
})).map("/channel/:channelId", AsyncServlet.ofBlocking(executor, request -> {
try {
return getJsonResponse(
ResponseHelper.channelResponse("channel/" + request.getPathParameter("channelId")),
@ -101,7 +101,7 @@ public class ServerLauncher extends MultithreadedHttpServerLauncher {
} catch (Exception e) {
return getErrorResponse(e);
}
})).map("/nextpage/channels/:channelId", AsyncServlet.ofBlocking(executor, request -> {
})).map("/nextpage/channel/:channelId", AsyncServlet.ofBlocking(executor, request -> {
try {
return getJsonResponse(ResponseHelper.channelPageResponse(request.getPathParameter("channelId"),
request.getQueryParameter("nextpage")), "public, max-age=3600");