silverwolf-x's picture
download
raw
418 Bytes
import { NextResponse } from 'next/server'
export async function GET(request) {
const requestCookies = request.cookies
const data = await fetch(
'https://next-data-api-endpoint.vercel.app/api/random',
{
headers: {
Authorization: 'Bearer token',
},
}
).then((res) => res.text())
console.log('has cookie data', !!requestCookies)
return NextResponse.json({ random: data })
}

Xet Storage Details

Size:
418 Bytes
·
Xet hash:
8018c80272880f27865dceabaabd2f321e021257d910714e5dd25cd1fe5d1136

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.