mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
This adds updated matching handle for the server to separate out the matching and executing of different route types e.g. page routes, API routes, and app routes. Co-authored-by: JJ Kasper <[email protected]>
8 lines
222 B
TypeScript
8 lines
222 B
TypeScript
import { getRequestMeta } from '../../../helpers'
|
|
import { NextResponse } from 'next/server'
|
|
|
|
export async function GET(request: Request) {
|
|
const meta = getRequestMeta(request.headers)
|
|
return NextResponse.json(meta)
|
|
}
|