mirror of
https://github.com/oceanprotocol/webtasks
synced 2025-01-06 20:05:40 +01:00
return 10 results for both endpoints
This commit is contained in:
parent
650aae46dc
commit
2fb4660f5e
@ -49,7 +49,7 @@ app.get('/channel/:channelId', (req, res) => {
|
||||
|
||||
app.get('/playlist/:playlistId', (req, res) => {
|
||||
const options = {
|
||||
url: `https://www.googleapis.com/youtube/v3/playlistItems?part=snippet%2CcontentDetails&playlistId=${req.params.playlistID}&key=${req.webtaskContext.secrets.YOUTUBE_API_KEY}`,
|
||||
url: `https://www.googleapis.com/youtube/v3/playlistItems?part=snippet%2CcontentDetails&maxResults=10&playlistId=${req.params.playlistID}&key=${req.webtaskContext.secrets.YOUTUBE_API_KEY}`,
|
||||
headers: { 'referer': req.headers.host }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user