You've already forked pages
forked from didirus/AstralRinth
Add landing page data for statistics & contributors
This commit is contained in:
@@ -12,7 +12,7 @@ export async function fetch(route, options = {}) {
|
||||
if (!version) {
|
||||
version = JSON.parse(await fs.readFile('./package.json', 'utf8')).version
|
||||
}
|
||||
return baseFetch(API_URL + route, {
|
||||
return baseFetch((route.startsWith('http') ? '' : API_URL) + route, {
|
||||
...options,
|
||||
headers: {
|
||||
'user-agent': `Omorphia / ${version} (venashial@modrinth.com)`,
|
||||
|
||||
Reference in New Issue
Block a user