🐛 Yeah, bug fix again...

This commit is contained in:
LittleSheep 2025-03-22 23:49:56 +08:00
parent 4e0ce9118d
commit 2306ec893b

View File

@ -1,11 +1,10 @@
import { defineEventHandler } from 'h3'
import { solarFetch } from '~/utils/request'
export default defineEventHandler(async () => {
const config = useRuntimeConfig();
const siteUrl = config.app.baseURL
const resp = await solarFetch(`${config.public.solarNetworkApi}/cgi/id/well-known/openid-configuration`)
const resp = await fetch(`${config.public.solarNetworkApi}/cgi/id/well-known/openid-configuration`)
const out: Record<string, any> = await resp.json()
out['authorization_endpoint'] = `${siteUrl}/auth/authorize`