관리자 통계 제외와 콘텐츠 링크 정리
This commit is contained in:
8
server/utils/analytics-admin-exclusion.js
Normal file
8
server/utils/analytics-admin-exclusion.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { getAdminSession } from './admin-auth.js'
|
||||
|
||||
/**
|
||||
* 관리자 세션의 통계 수집 제외 여부를 확인한다.
|
||||
* @param {import('h3').H3Event} event - 요청 이벤트
|
||||
* @returns {boolean} 통계 수집 제외 여부
|
||||
*/
|
||||
export const shouldExcludeAdminAnalytics = (event) => Boolean(getAdminSession(event))
|
||||
Reference in New Issue
Block a user