Translation system is still fucked up
This commit is contained in:
parent
f8ba6b0245
commit
c80eac9d5b
@ -39,7 +39,7 @@ async function login(loginUrl, username, password) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default async function omadaProxyHandler(req, res) {
|
export default async function omadaProxyHandler(req, res) {
|
||||||
const { group, service, endpoint } = req.query;
|
const { group, service } = req.query;
|
||||||
|
|
||||||
if (group && service) {
|
if (group && service) {
|
||||||
const widget = await getServiceWidget(group, service);
|
const widget = await getServiceWidget(group, service);
|
||||||
@ -68,6 +68,7 @@ export default async function omadaProxyHandler(req, res) {
|
|||||||
|
|
||||||
const url = `${widget.url}/web/v1/controller?globalStat=&token=${token}`;
|
const url = `${widget.url}/web/v1/controller?globalStat=&token=${token}`;
|
||||||
|
|
||||||
|
// eslint-disable-next-line prefer-const
|
||||||
[status, contentType, result] = await httpProxy(url, {
|
[status, contentType, result] = await httpProxy(url, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
params: {"token": token},
|
params: {"token": token},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user