mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-19 11:09:50 +00:00
rewrite minecraft server status widget to directly ping server
This commit is contained in:
parent
f418ee6327
commit
ad66637ff1
5 changed files with 54 additions and 17 deletions
|
@ -1,12 +1,11 @@
|
|||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||
import minecraftProxyHandler from "utils/proxy/handlers/minecraft";
|
||||
import { asJson } from "utils/proxy/api-helpers";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/{endpoint}/{domain}",
|
||||
proxyHandler: genericProxyHandler,
|
||||
proxyHandler: minecraftProxyHandler,
|
||||
mappings: {
|
||||
status: {
|
||||
endpoint: "2",
|
||||
endpoint: "_",
|
||||
map: (data) => {
|
||||
const jsonData = asJson(data);
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue