#709: Added usecase discovery and mapping on /usecases path

This commit is contained in:
frikky
2022-02-20 19:03:58 +01:00
parent ce0bfa7f89
commit 36f9ed26c2
6 changed files with 301 additions and 173 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ const App = (message, props) => {
!window.location.pathname.startsWith("/docs") &&
!window.location.pathname.startsWith("/detectionframework") &&
!window.location.pathname.startsWith("/adminsetup") &&
!window.location.pathname.startsWith("/dashboard")
!window.location.pathname.startsWith("/usecases")
) {
window.location = "/login";
}
@@ -407,7 +407,7 @@ const App = (message, props) => {
/>
<Route
exact
path="/dashboard"
path="/usecases"
element={
<Dashboard
isLoaded={isLoaded}