Update src/widgets/wgeasy/proxy.js

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
pull/3476/head
Conner Hnatiuk 3 weeks ago committed by GitHub
parent a7af8bb070
commit c30fa0d81c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -53,8 +53,7 @@ export default async function wgeasyProxyHandler(req, res) {
return res.status(500).json({ error: "Failed to authenticate with Wg-Easy" });
}
}
// eslint-disable-next-line no-unused-vars
const [status, contentType, data, responseHeaders] = await httpProxy(
const [, , data, ] = await httpProxy(
formatApiCall(widgets[widget.type].api, { ...widget, endpoint: "wireguard/client" }),
{
method: "GET",

Loading…
Cancel
Save