mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Use same path as youtube (#75)
This commit is contained in:
parent
4ac4f0d8ea
commit
9e382483d8
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue