初次提交
Build VoiceHub FPK / build-fpk (push) Failing after 56m5s
Build and Push Docker Image / build-and-push (push) Canceled after 1h9m35s

This commit is contained in:
2026-09-06 08:19:02 +08:00
commit 4ce4649aaf
1061 changed files with 337258 additions and 0 deletions
@@ -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
}
})