♻️ Refactor urls with aliased services
This commit is contained in:
@ -86,7 +86,7 @@ const panel = ref("confirm")
|
||||
async function tryAuthorize() {
|
||||
loading.value = true
|
||||
|
||||
const res = await solarFetch(`/cgi/auth/auth/o/authorize${window.location.search}`)
|
||||
const res = await solarFetch(`/cgi/id/auth/o/authorize${window.location.search}`)
|
||||
|
||||
if (res.status !== 200) {
|
||||
error.value = await res.text()
|
||||
@ -115,7 +115,7 @@ function decline() {
|
||||
|
||||
async function approve() {
|
||||
loading.value = true
|
||||
const res = await solarFetch(`/cgi/auth/auth/o/authorize${window.location.search}`, {
|
||||
const res = await solarFetch(`/cgi/id/auth/o/authorize${window.location.search}`, {
|
||||
method: "POST",
|
||||
})
|
||||
|
||||
|
@ -120,7 +120,7 @@ async function submit() {
|
||||
if (!payload.name || !payload.nick || !payload.email || !payload.password) return
|
||||
|
||||
loading.value = true
|
||||
const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/users`, {
|
||||
const res = await fetch(`${config.public.solarNetworkApi}/cgi/id/users`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(payload),
|
||||
|
Reference in New Issue
Block a user