페이지 섹션 관리와 홈 Pages 진열장 연동, 공개 목록 표시개수 설정 관련 누적 로컬 변경을 기능 단위로 정리해 반영한다. 문서 이력과 패키지 버전을 v1.9.23으로 맞춰 코드와 문서 상태를 동기화한다. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
419 B
JavaScript
14 lines
419 B
JavaScript
import { requireAdminSession } from '../../../utils/admin-auth'
|
|
import { listAdminPageSections } from '../../../repositories/content-repository'
|
|
|
|
/**
|
|
* 관리자 페이지 섹션 목록 API
|
|
* @param {import('h3').H3Event} event - 요청 이벤트
|
|
* @returns {Promise<Array>} 페이지 섹션 목록
|
|
*/
|
|
export default defineEventHandler((event) => {
|
|
requireAdminSession(event)
|
|
|
|
return listAdminPageSections()
|
|
})
|