Add sdk/js/mojang/status

Braydon 2024-04-15 12:59:23 -07:00
parent c12b935d73
commit fbe995facb

@ -0,0 +1,23 @@
# Server Status
## Example
```ts
import {
getMojangServerStatus,
type MojangServerStatusResponse,
} from "restfulmc-lib";
const serverStatus: MojangServerStatusResponse = await getMojangServerStatus(); // Get the status of Mojang's servers
console.log(serverStatus); // Log the status of Mojang's servers
```
## Output
```json
{
"https://libraries.minecraft.net": "ONLINE",
"https://api.mojang.com": "ONLINE",
"https://sessionserver.mojang.com": "ONLINE",
"https://assets.mojang.com": "ONLINE",
"https://textures.minecraft.net": "ONLINE",
}
```