feat: init
This commit is contained in:
parent
8acd8f6fbd
commit
97d3a6277d
77 changed files with 5299 additions and 0 deletions
11
app/api/site/route.ts
Normal file
11
app/api/site/route.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { type NextRequest } from 'next/server'
|
||||
import { NextResponse } from 'next/server'
|
||||
import { getInfo, setSession } from '@/app/api/utils/common'
|
||||
import { APP_INFO } from '@/config'
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
const { sessionId } = getInfo(request);
|
||||
return NextResponse.json(APP_INFO, {
|
||||
headers: setSession(sessionId)
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue