summaryrefslogtreecommitdiffstats
path: root/app/Middleware/Dashboard.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/Middleware/Dashboard.ts')
-rw-r--r--app/Middleware/Dashboard.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Middleware/Dashboard.ts b/app/Middleware/Dashboard.ts
index 19c8cfc..20113b7 100644
--- a/app/Middleware/Dashboard.ts
+++ b/app/Middleware/Dashboard.ts
@@ -1,9 +1,9 @@
1import type { HttpContext } from '@adonisjs/core/http'; 1import type { HttpContext } from '@adonisjs/core/http';
2import { Config } from '@adonisjs/core/config'; 2import config from '@adonisjs/core/services/config';
3 3
4export default class Dashboard { 4export default class Dashboard {
5 public async handle({ response }: HttpContext, next: () => Promise<void>) { 5 public async handle({ response }: HttpContext, next: () => Promise<void>) {
6 if (Config.get('dashboard.enabled') === false) { 6 if (config.get('dashboard.enabled') === false) {
7 response.send( 7 response.send(
8 'The user dashboard is disabled on this server\n\nIf you are the server owner, please set IS_DASHBOARD_ENABLED to true to enable the dashboard.', 8 'The user dashboard is disabled on this server\n\nIf you are the server owner, please set IS_DASHBOARD_ENABLED to true to enable the dashboard.',
9 ); 9 );