mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
add font awesome, file icons, and more
This commit is contained in:
@@ -40,6 +40,9 @@ const getAccessToken = async () => {
|
||||
|
||||
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
const { path = '/' } = req.query
|
||||
if (path === '[...path]') {
|
||||
res.status(400).json({ error: 'Path query invalid.' })
|
||||
}
|
||||
|
||||
if (typeof path === 'string') {
|
||||
const accessToken = await getAccessToken()
|
||||
|
||||
Reference in New Issue
Block a user