System logs only for self hosted

This commit is contained in:
Adria Navarro 2023-07-10 13:38:38 +02:00
parent bb28d09eab
commit b64ea43d20
1 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,8 @@ import accountRoutes from "./system/accounts"
import restoreRoutes from "./system/restore"
import systemLogRoutes from "./system/logs"
import env from "../../environment"
export const routes: Router[] = [
configRoutes,
userRoutes,
@ -38,5 +40,8 @@ export const routes: Router[] = [
restoreRoutes,
eventRoutes,
pro.scim,
systemLogRoutes,
]
if (env.SELF_HOSTED) {
routes.push(systemLogRoutes)
}