Nuxt 초기 세팅 추가
This commit is contained in:
7
server/api/posts.get.js
Normal file
7
server/api/posts.get.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { getSamplePosts } from '../utils/sample-content'
|
||||
|
||||
/**
|
||||
* 공개 게시물 목록 API
|
||||
* @returns {Array} 게시물 목록
|
||||
*/
|
||||
export default defineEventHandler(() => getSamplePosts())
|
||||
Reference in New Issue
Block a user