You've already forked AstralRinth
forked from didirus/AstralRinth
update Modrinth Hosting issue template + misc comments (#5166)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: 👥 Bug with Modrinth Servers
|
name: 👥 Bug with Modrinth Hosting
|
||||||
description: For issues with a Modrinth Servers product.
|
description: For issues with a Modrinth Hosting product.
|
||||||
labels: [servers]
|
labels: [hosting]
|
||||||
type: 'bug'
|
type: 'bug'
|
||||||
body:
|
body:
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
2
.github/ISSUE_TEMPLATE/5-feature-request.yml
vendored
2
.github/ISSUE_TEMPLATE/5-feature-request.yml
vendored
@@ -19,7 +19,7 @@ body:
|
|||||||
options:
|
options:
|
||||||
- Modrinth App
|
- Modrinth App
|
||||||
- Modrinth.com website
|
- Modrinth.com website
|
||||||
- Modrinth Servers
|
- Modrinth Hosting
|
||||||
- Modrinth API for developers
|
- Modrinth API for developers
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const client = new GenericModrinthClient({
|
|||||||
// Explicitly make a request using client.request
|
// Explicitly make a request using client.request
|
||||||
const project: any = await client.request('/project/sodium', { api: 'labrinth', version: 2 })
|
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 })
|
const servers = await client.request('/servers?limit=10', { api: 'archon', version: 0 })
|
||||||
|
|
||||||
// Or use the provided wrappers for better type support.
|
// Or use the provided wrappers for better type support.
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export interface ClientConfig {
|
|||||||
labrinthBaseUrl?: string
|
labrinthBaseUrl?: string
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base URL for Archon API (Modrinth Servers API)
|
* Base URL for Archon API (Modrinth Hosting API)
|
||||||
* @default 'https://archon.modrinth.com'
|
* @default 'https://archon.modrinth.com'
|
||||||
*/
|
*/
|
||||||
archonBaseUrl?: string
|
archonBaseUrl?: string
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export type RequestOptions = {
|
|||||||
/**
|
/**
|
||||||
* API to use for this request
|
* API to use for this request
|
||||||
* - 'labrinth': Main Modrinth API (resolves to labrinthBaseUrl)
|
* - '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')
|
* - string: Custom base URL (e.g., 'https://custom-api.com')
|
||||||
*/
|
*/
|
||||||
api: 'labrinth' | 'archon' | string
|
api: 'labrinth' | 'archon' | string
|
||||||
|
|||||||
Reference in New Issue
Block a user