feat: map serverInfo data

This commit is contained in:
CosminPerRam 2024-04-08 19:44:43 +03:00
parent 8c237980e2
commit 2d4d0f50db
1 changed files with 4 additions and 3 deletions

View File

@ -8,8 +8,9 @@ export default class palworld extends Core {
Accept: 'application/json'
}
const response = await this.request({ url, headers, method: 'GET' })
console.log(response)
const serverInfo = await this.request({ url, headers, method: 'GET' })
state.version = serverInfo.version
state.name = serverInfo.servername
state.raw.serverInfo = serverInfo
}
}