update Modrinth Hosting issue template + misc comments (#5166)

This commit is contained in:
Prospector
2026-01-20 12:40:11 -08:00
committed by GitHub
parent a869086ce9
commit 9f6db31785
5 changed files with 7 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ const client = new GenericModrinthClient({
// Explicitly make a request using client.request
const project: any = await client.request('/project/sodium', { api: 'labrinth', version: 2 })
// Example for archon (Modrinth Servers)
// Example for archon (Modrinth Hosting)
const servers = await client.request('/servers?limit=10', { api: 'archon', version: 0 })
// Or use the provided wrappers for better type support.

View File

@@ -39,7 +39,7 @@ export interface ClientConfig {
labrinthBaseUrl?: string
/**
* Base URL for Archon API (Modrinth Servers API)
* Base URL for Archon API (Modrinth Hosting API)
* @default 'https://archon.modrinth.com'
*/
archonBaseUrl?: string

View File

@@ -10,7 +10,7 @@ export type RequestOptions = {
/**
* API to use for this request
* - 'labrinth': Main Modrinth API (resolves to labrinthBaseUrl)
* - 'archon': Modrinth Servers API (resolves to archonBaseUrl)
* - 'archon': Modrinth Hosting API (resolves to archonBaseUrl)
* - string: Custom base URL (e.g., 'https://custom-api.com')
*/
api: 'labrinth' | 'archon' | string