From f1d274068940df22a7e411c312260f15eb0e3b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=9A=E7=9A=93?= <1736436516@qq.com> Date: Fri, 26 Jul 2024 15:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85=E8=AF=B7=E6=B1=82=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superbox.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superbox.js b/superbox.js index 518baf1..f253ba9 100644 --- a/superbox.js +++ b/superbox.js @@ -6,12 +6,13 @@ export const getSuperboxApiConfig = (address) => { const LOGIN_ROUTE = BASE_ROUTE + "/auth/login"; const LOGOUT_ROUTE = BASE_ROUTE + "/auth/logout"; const CAMERA_ROUTE = BASE_ROUTE + "/camera/cameras"; - const EVENTS_ROUTE = BASE_ROUTE + "/event/events"; + const EVENTS_ROUTE = BASE_ROUTE + "/event/events?limit=300"; const ALGORITHM_ROUTE = BASE_ROUTE + "/algorithms"; let addr = address; if (!addr) { addr = window.location.host.replace(/:\d+/, ""); + console.log("No address provided, using " + addr); } const superboxAddress = "http://" + addr + ":" + PORT.toString(); @@ -155,4 +156,5 @@ export default { getSuperboxApiConfig, initCodeNameMap, codenameTranslate, + getAlgorithms, };