feat: align with upstream 1.5.9.9

This commit is contained in:
2026-09-12 18:21:11 +08:00
commit 34f0679117
805 changed files with 376275 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { getServerLocation } from '../../utils/geo'
export default defineEventHandler(async (event) => {
// 缓存 1 小时,避免频繁请求外部 IP 服务
setHeader(event, 'Cache-Control', 'public, max-age=3600, s-maxage=3600')
const location = await getServerLocation()
return {
success: true,
data: location
}
})