Quick-link
This commit is contained in:
parent
a200dc05e3
commit
fa16e106ce
1 changed files with 10 additions and 0 deletions
10
src/app/gerir/route.ts
Normal file
10
src/app/gerir/route.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { NextRequest, NextResponse } from 'next/server'
|
||||
|
||||
export async function GET(req: NextRequest) {
|
||||
const auth = req.nextUrl.searchParams.get('auth') || ''
|
||||
const redirectUrl = new URL('/', req.url)
|
||||
if (auth) {
|
||||
redirectUrl.searchParams.set('auth', auth)
|
||||
}
|
||||
return NextResponse.redirect(redirectUrl)
|
||||
}
|
||||
Loading…
Reference in a new issue