mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-07 07:52:08 +08:00
Translation system is still fucked up
This commit is contained in:
@@ -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},
|
||||||
|
|||||||
Reference in New Issue
Block a user