v1.10.88 품질·보안 개선과 미디어 카탈로그 database 전환을 반영한다.
세션·로그인 제한, ZIP/업로드 스트리밍, CSP 최소 강제와 Report-Only, Playwright 격리 검증을 추가하고 미디어 목록을 reconcile 후 database 모드로 고정한다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
14
server/routes/admin/api/media/reconcile.post.js
Normal file
14
server/routes/admin/api/media/reconcile.post.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { requireAdminSession } from '../../../../utils/admin-auth'
|
||||
import { reconcileMediaCatalog } from '../../../../repositories/media-catalog-repository'
|
||||
|
||||
/**
|
||||
* 관리자 수동 미디어 카탈로그 재동기화 API
|
||||
* 파일을 삭제하거나 이동하지 않고 발견 파일 upsert와 누락 상태 표시만 수행한다.
|
||||
* @param {import('h3').H3Event} event - 요청 이벤트
|
||||
* @returns {Promise<Object>} 재동기화 비교 보고
|
||||
*/
|
||||
export default defineEventHandler(async (event) => {
|
||||
requireAdminSession(event)
|
||||
|
||||
return reconcileMediaCatalog()
|
||||
})
|
||||
Reference in New Issue
Block a user