-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from Meetfolio-Project-CodeZ-Team/develop
merge to main
- Loading branch information
Showing
4 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
import { postBoardDetail } from '@/app/service/postRequests' | ||
import { getBoardDetail } from '@/app/service/getRequests' | ||
import { getCookie } from '@/app/utils/cookies' | ||
import { NextResponse } from 'next/server' | ||
|
||
export async function POST(request: Request) { | ||
export async function GET(request: Request):Promise<NextResponse> { | ||
let accessToken = getCookie(request, 'accessToken') | ||
const { searchParams } = new URL(request.url) | ||
const id = searchParams.get('id') || '' | ||
const data = await postBoardDetail(accessToken, id) | ||
|
||
console.log(data, accessToken, id, '디테일 요청') | ||
const data = await getBoardDetail(accessToken, id) | ||
|
||
return NextResponse.json(data) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters