태그를 관리용/일반용으로 분리하고 관리자 드래그 정렬을 추가.
댓글/회원/관리자 인증·프로필 흐름 보완과 관련 마이그레이션 및 문서를 함께 반영해 운영 동선을 안정화. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { listPostCommentsBySlug } from '../../../repositories/comment-repository'
|
||||
import { getMemberSession } from '../../../utils/member-auth'
|
||||
|
||||
/**
|
||||
* 게시물 댓글 목록 조회 API
|
||||
@@ -7,7 +8,8 @@ import { listPostCommentsBySlug } from '../../../repositories/comment-repository
|
||||
*/
|
||||
export default defineEventHandler(async (event) => {
|
||||
const slug = String(getRouterParam(event, 'slug') || '')
|
||||
const comments = await listPostCommentsBySlug(slug)
|
||||
const session = getMemberSession(event)
|
||||
const comments = await listPostCommentsBySlug(slug, session?.userId || null)
|
||||
|
||||
return {
|
||||
comments
|
||||
|
||||
Reference in New Issue
Block a user