PostgreSQL 데이터 계층 추가

This commit is contained in:
2026-04-29 15:22:54 +09:00
parent cbf5ed6c8c
commit 5ee6fcd54b
20 changed files with 429 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
import { getSamplePosts } from '../utils/sample-content'
import { listPosts } from '../repositories/content-repository'
/**
* 공개 게시물 목록 API
* @returns {Array} 게시물 목록
*/
export default defineEventHandler(() => getSamplePosts())
export default defineEventHandler(() => listPosts())