为导航栏添加缩窄后弹出提示功能
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import {NextRequest, NextResponse} from 'next/server'
|
||||
|
||||
export async function GET(req: NextRequest) {
|
||||
const headers: {
|
||||
[key: string]: string
|
||||
} = {}
|
||||
req.headers.forEach((value, key) => {
|
||||
headers[key] = value
|
||||
})
|
||||
return NextResponse.json({
|
||||
headers: headers,
|
||||
cookies: req.cookies.getAll(),
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user