공개 검색 한글 입력 처리 개선

This commit is contained in:
2026-07-01 10:18:46 +09:00
parent 00999404a4
commit 946bbd5b09
9 changed files with 69 additions and 18 deletions

View File

@@ -1,9 +1,9 @@
import { searchPublicContent } from '../repositories/content-repository'
/**
* 공개 통합 검색 API(태그·게시물)
* 공개 통합 검색 API(태그·게시물·페이지)
* @param {import('h3').H3Event} event - 요청 이벤트
* @returns {Promise<{ tags: Array<{ name: string, slug: string }>, posts: Array<{ slug: string, title: string, excerpt: string }> }>} 검색 결과
* @returns {Promise<{ tags: Array<{ name: string, slug: string }>, posts: Array<{ slug: string, title: string, excerpt: string }>, pages: Array<{ slug: string, title: string, excerpt: string }> }>} 검색 결과
*/
export default defineEventHandler(async (event) => {
const raw = getQuery(event).q