You've already forked AstralRinth
update Modrinth Hosting issue template + misc comments (#5166)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user