feat: 初始化慧遇书院官网一期
This commit is contained in:
6
server/api/public/site.get.ts
Normal file
6
server/api/public/site.get.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { readSiteDocument } from '../../utils/db'
|
||||
|
||||
export default defineEventHandler((event) => {
|
||||
setResponseHeader(event, 'Cache-Control', 'public, max-age=60, stale-while-revalidate=300')
|
||||
return readSiteDocument('published')
|
||||
})
|
||||
Reference in New Issue
Block a user