mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
request all thumbnail on separate route instead
This commit is contained in:
@@ -220,7 +220,6 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
headers: { Authorization: `Bearer ${accessToken}` },
|
||||
params: {
|
||||
select: '@microsoft.graph.downloadUrl,name,size,id,lastModifiedDateTime,folder,file,video,image',
|
||||
$expand: 'thumbnails',
|
||||
},
|
||||
})
|
||||
|
||||
@@ -230,13 +229,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
params: next
|
||||
? {
|
||||
select: '@microsoft.graph.downloadUrl,name,size,id,lastModifiedDateTime,folder,file,video,image',
|
||||
$expand: 'thumbnails',
|
||||
top: siteConfig.maxItems,
|
||||
$skipToken: next,
|
||||
}
|
||||
: {
|
||||
select: '@microsoft.graph.downloadUrl,name,size,id,lastModifiedDateTime,folder,file,video,image',
|
||||
$expand: 'thumbnails',
|
||||
top: siteConfig.maxItems,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user