diff --git a/apps/frontend/src/composables/servers/servers-fetch.ts b/apps/frontend/src/composables/servers/servers-fetch.ts index 063407818..b46db7daf 100644 --- a/apps/frontend/src/composables/servers/servers-fetch.ts +++ b/apps/frontend/src/composables/servers/servers-fetch.ts @@ -6,7 +6,7 @@ export interface ServersFetchOptions { method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' contentType?: string body?: Record - version?: number + version?: number | 'internal' override?: { url?: string token?: string @@ -82,7 +82,9 @@ export async function useServersFetch( ? `https://${newOverrideUrl}/${path.replace(/^\//, '')}` : version === 0 ? `${base}/modrinth/v${version}/${path.replace(/^\//, '')}` - : `${base}/v${version}/${path.replace(/^\//, '')}` + : version === 'internal' + ? `${base}/_internal/${path.replace(/^\//, '')}` + : `${base}/modrinth/v${version}/${path.replace(/^\//, '')}` const headers: Record = { 'User-Agent': 'Modrinth/1.0 (https://modrinth.com)', diff --git a/apps/frontend/src/layouts/default.vue b/apps/frontend/src/layouts/default.vue index c7031d675..3e75317be 100644 --- a/apps/frontend/src/layouts/default.vue +++ b/apps/frontend/src/layouts/default.vue @@ -461,6 +461,12 @@ link: '/admin/servers/notices', shown: isAdmin(auth.user), }, + { + id: 'servers-nodes', + color: 'primary', + link: '/admin/servers/nodes', + shown: isAdmin(auth.user), + }, ]" >