🐛 Yeah, bug fix again...
This commit is contained in:
parent
4e0ce9118d
commit
2306ec893b
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user