parent
ad66637ff1
commit
b36ef0234e
@ -1,21 +1,7 @@
|
||||
import minecraftProxyHandler from "utils/proxy/handlers/minecraft";
|
||||
import { asJson } from "utils/proxy/api-helpers";
|
||||
|
||||
const widget = {
|
||||
proxyHandler: minecraftProxyHandler,
|
||||
mappings: {
|
||||
status: {
|
||||
endpoint: "_",
|
||||
map: (data) => {
|
||||
const jsonData = asJson(data);
|
||||
return {
|
||||
players: jsonData.players,
|
||||
version: jsonData.version,
|
||||
online: jsonData.online
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
proxyHandler: minecraftProxyHandler
|
||||
}
|
||||
|
||||
export default widget;
|
||||
|
Loading…
Reference in new issue