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, };