Update src/widgets/wgeasy/proxy.js

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Conner Hnatiuk 2024-05-16 22:57:31 -06:00 committed by GitHub
parent a7af8bb070
commit c30fa0d81c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",