aboutsummaryrefslogtreecommitdiffstats
path: root/app/Middleware/Dashboard.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/Middleware/Dashboard.ts')
-rw-r--r--app/Middleware/Dashboard.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Middleware/Dashboard.ts b/app/Middleware/Dashboard.ts
index f29794c..19c8cfc 100644
--- a/app/Middleware/Dashboard.ts
+++ b/app/Middleware/Dashboard.ts
@@ -1,14 +1,14 @@
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/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 );
10 } else { 10 } else {
11 await next() 11 await next();
12 } 12 }
13 } 13 }
14} 14}