Update src/widgets/wgeasy/proxy.js
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
a7af8bb070
commit
c30fa0d81c
@ -53,8 +53,7 @@ export default async function wgeasyProxyHandler(req, res) {
|
|||||||
return res.status(500).json({ error: "Failed to authenticate with Wg-Easy" });
|
return res.status(500).json({ error: "Failed to authenticate with Wg-Easy" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line no-unused-vars
|
const [, , data, ] = await httpProxy(
|
||||||
const [status, contentType, data, responseHeaders] = await httpProxy(
|
|
||||||
formatApiCall(widgets[widget.type].api, { ...widget, endpoint: "wireguard/client" }),
|
formatApiCall(widgets[widget.type].api, { ...widget, endpoint: "wireguard/client" }),
|
||||||
{
|
{
|
||||||
method: "GET",
|
method: "GET",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user