System logs only for self hosted
This commit is contained in:
parent
bb28d09eab
commit
b64ea43d20
|
@ -18,6 +18,8 @@ import accountRoutes from "./system/accounts"
|
||||||
import restoreRoutes from "./system/restore"
|
import restoreRoutes from "./system/restore"
|
||||||
import systemLogRoutes from "./system/logs"
|
import systemLogRoutes from "./system/logs"
|
||||||
|
|
||||||
|
import env from "../../environment"
|
||||||
|
|
||||||
export const routes: Router[] = [
|
export const routes: Router[] = [
|
||||||
configRoutes,
|
configRoutes,
|
||||||
userRoutes,
|
userRoutes,
|
||||||
|
@ -38,5 +40,8 @@ export const routes: Router[] = [
|
||||||
restoreRoutes,
|
restoreRoutes,
|
||||||
eventRoutes,
|
eventRoutes,
|
||||||
pro.scim,
|
pro.scim,
|
||||||
systemLogRoutes,
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if (env.SELF_HOSTED) {
|
||||||
|
routes.push(systemLogRoutes)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue