diff --git a/components/PostItem.vue b/components/PostItem.vue
index 8bae0a7..eb9ead1 100644
--- a/components/PostItem.vue
+++ b/components/PostItem.vue
@@ -14,7 +14,7 @@
0) {
diff --git a/components/PostReplyList.vue b/components/PostReplyList.vue
index 9861329..392c3fb 100644
--- a/components/PostReplyList.vue
+++ b/components/PostReplyList.vue
@@ -19,7 +19,7 @@ async function loadPost({ done }: any) {
offset: posts.value.length.toString(),
})
- const res = await fetch(`${config.public.solarNetworkApi}/cgi/interactive/posts/${props.postId}/replies?` + searchQueries)
+ const res = await fetch(`${config.public.solarNetworkApi}/cgi/co/posts/${props.postId}/replies?` + searchQueries)
const result = await res.json()
if (result.data.length > 0) {
diff --git a/components/UserMenu.vue b/components/UserMenu.vue
index 2c6b65b..d183646 100755
--- a/components/UserMenu.vue
+++ b/components/UserMenu.vue
@@ -46,7 +46,7 @@ const nickname = computed(() => {
}
})
const avatar = computed(() => {
- return id.userinfo?.avatar ? `${config.public.solarNetworkApi}/cgi/files/attachments/${id.userinfo?.avatar}` : void 0
+ return id.userinfo?.avatar ? `${config.public.solarNetworkApi}/cgi/uc/attachments/${id.userinfo?.avatar}` : void 0
})
function signOut() {
diff --git a/components/account/AuthTicketTable.vue b/components/account/AuthTicketTable.vue
index 1838d13..31b854e 100644
--- a/components/account/AuthTicketTable.vue
+++ b/components/account/AuthTicketTable.vue
@@ -126,7 +126,7 @@ async function readTickets({ page, itemsPerPage }: { page?: number; itemsPerPage
reverting.sessions = true
const res = await solarFetch(
- "/cgi/auth/users/me/tickets?" +
+ "/cgi/id/users/me/tickets?" +
new URLSearchParams({
take: pagination.tickets.pageSize.toString(),
offset: ((pagination.tickets.page - 1) * pagination.tickets.pageSize).toString(),
@@ -148,7 +148,7 @@ async function readEvents({ page, itemsPerPage }: { page?: number; itemsPerPage?
reverting.events = true
const res = await solarFetch(
- "/cgi/auth/users/me/events?" +
+ "/cgi/id/users/me/events?" +
new URLSearchParams({
take: pagination.events.pageSize.toString(),
offset: ((pagination.events.page - 1) * pagination.events.pageSize).toString(),
@@ -168,7 +168,7 @@ Promise.all([readTickets({}), readEvents({})])
async function killTicket(item: any) {
reverting.sessions = true
- const res = await solarFetch(`/cgi/auth/users/me/tickets/${item.id}`, {
+ const res = await solarFetch(`/cgi/id/users/me/tickets/${item.id}`, {
method: "DELETE",
})
if (res.status !== 200) {
diff --git a/components/activity/Carousel.vue b/components/activity/Carousel.vue
index 40371c2..4c45a6b 100644
--- a/components/activity/Carousel.vue
+++ b/components/activity/Carousel.vue
@@ -21,7 +21,7 @@ const loading = ref(false)
async function load() {
loading.value = true
- const res = await fetch(`${config.public.solarNetworkApi}/cgi/interactive/posts?take=5&realmId=${config.public.solarRealmId}`)
+ const res = await fetch(`${config.public.solarNetworkApi}/cgi/co/posts?take=5&realmId=${config.public.solarRealmId}`)
const result = await res.json()
items.value.push(...result.data)
diff --git a/components/attachment/Carousel.vue b/components/attachment/Carousel.vue
index 5ceacb1..0b52288 100644
--- a/components/attachment/Carousel.vue
+++ b/components/attachment/Carousel.vue
@@ -24,7 +24,7 @@ const emits = defineEmits(["update:metadata"])
const config = useRuntimeConfig()
-const { data } = await useFetch(`${config.public.solarNetworkApi}/cgi/files/attachments?take=${props.attachments.length}&id=${props.attachments.join(",")}`)
+const { data } = await useFetch(`${config.public.solarNetworkApi}/cgi/uc/attachments?take=${props.attachments.length}&id=${props.attachments.join(",")}`)
const metadata = computed(() => data.value.data)
watch(metadata, (value) => {
@@ -32,6 +32,6 @@ watch(metadata, (value) => {
}, { deep: true, immediate: true })
function getAttachmentUrl(id: number) {
- return `${config.public.solarNetworkApi}/cgi/files/attachments/${id}`
+ return `${config.public.solarNetworkApi}/cgi/uc/attachments/${id}`
}
diff --git a/components/attachment/Renderer.vue b/components/attachment/Renderer.vue
index f1f8c4a..fb1f68a 100644
--- a/components/attachment/Renderer.vue
+++ b/components/attachment/Renderer.vue
@@ -56,6 +56,6 @@ const item = computed(() => props.item)
const showMature = ref(false)
function getAttachmentUrl(id: number) {
- return `${config.public.solarNetworkApi}/cgi/files/attachments/${id}`
+ return `${config.public.solarNetworkApi}/cgi/uc/attachments/${id}`
}
diff --git a/components/auth/Authenticate.vue b/components/auth/Authenticate.vue
index bc211f0..4763476 100755
--- a/components/auth/Authenticate.vue
+++ b/components/auth/Authenticate.vue
@@ -47,7 +47,7 @@ async function submit() {
if (!probe.value || !password.value) return
emits("update:loading", true)
- const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/auth`, {
+ const res = await fetch(`${config.public.solarNetworkApi}/cgi/id/auth`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ username: probe.value, password: password.value }),
diff --git a/components/auth/AuthenticateCompleted.vue b/components/auth/AuthenticateCompleted.vue
index 0513a44..c776448 100644
--- a/components/auth/AuthenticateCompleted.vue
+++ b/components/auth/AuthenticateCompleted.vue
@@ -36,7 +36,7 @@ async function load() {
onMounted(() => load())
async function getToken(tk: string) {
- const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/auth/token`, {
+ const res = await fetch(`${config.public.solarNetworkApi}/cgi/id/auth/token`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
diff --git a/components/auth/FactorApplicator.vue b/components/auth/FactorApplicator.vue
index 82a5bd8..0c1031c 100755
--- a/components/auth/FactorApplicator.vue
+++ b/components/auth/FactorApplicator.vue
@@ -58,7 +58,7 @@ const emits = defineEmits(["swap", "update:ticket", "update:loading"])
async function submit() {
emits("update:loading", true)
- const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/auth/mfa`, {
+ const res = await fetch(`${config.public.solarNetworkApi}/cgi/id/auth/mfa`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
diff --git a/components/auth/FactorPicker.vue b/components/auth/FactorPicker.vue
index 6e1a33b..2faa99c 100755
--- a/components/auth/FactorPicker.vue
+++ b/components/auth/FactorPicker.vue
@@ -44,7 +44,7 @@ const emits = defineEmits(["swap", "update:loading", "update:currentFactor"])
async function load() {
emits("update:loading", true)
- const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/auth/factors?ticketId=${props.ticket.id}`)
+ const res = await fetch(`${config.public.solarNetworkApi}/cgi/id/auth/factors?ticketId=${props.ticket.id}`)
if (res.status !== 200) {
error.value = await res.text()
} else {
@@ -59,7 +59,7 @@ async function submit() {
if (!focus.value) return
emits("update:loading", true)
- const res = await fetch(`${config.public.solarNetworkApi}/cgi/auth/auth/factors/${focus.value}`, {
+ const res = await fetch(`${config.public.solarNetworkApi}/cgi/id/auth/factors/${focus.value}`, {
method: "POST",
})
if (res.status !== 200 && res.status !== 204) {
diff --git a/components/content/EmbedPostItem.vue b/components/content/EmbedPostItem.vue
index 6960676..f9b0b1a 100644
--- a/components/content/EmbedPostItem.vue
+++ b/components/content/EmbedPostItem.vue
@@ -14,7 +14,7 @@ const { t } = useI18n()
const config = useRuntimeConfig()
-const { status, data: post } = await useFetch(`${config.public.solarNetworkApi}/cgi/interactive/posts/${props.id}`)
+const { status, data: post } = await useFetch(`${config.public.solarNetworkApi}/cgi/co/posts/${props.id}`)