diff options
Diffstat (limited to 'app/Controllers/Http/Dashboard/DataController.ts')
-rw-r--r-- | app/Controllers/Http/Dashboard/DataController.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Controllers/Http/Dashboard/DataController.ts b/app/Controllers/Http/Dashboard/DataController.ts index 8a77329..5f22979 100644 --- a/app/Controllers/Http/Dashboard/DataController.ts +++ b/app/Controllers/Http/Dashboard/DataController.ts | |||
@@ -1,14 +1,14 @@ | |||
1 | import type { HttpContext } from '@adonisjs/core/http' | 1 | import type { HttpContext } from '@adonisjs/core/http'; |
2 | 2 | ||
3 | export default class DataController { | 3 | export default class DataController { |
4 | /** | 4 | /** |
5 | * Display the data page | 5 | * Display the data page |
6 | */ | 6 | */ |
7 | public async show({ view, auth }: HttpContext) { | 7 | public async show({ view, auth }: HttpContext) { |
8 | const { user } = auth | 8 | const { user } = auth; |
9 | 9 | ||
10 | const services = await user?.related('services').query() | 10 | const services = await user?.related('services').query(); |
11 | const workspaces = await user?.related('workspaces').query() | 11 | const workspaces = await user?.related('workspaces').query(); |
12 | 12 | ||
13 | return view.render('dashboard/data', { | 13 | return view.render('dashboard/data', { |
14 | username: user?.username, | 14 | username: user?.username, |
@@ -19,6 +19,6 @@ export default class DataController { | |||
19 | stringify: JSON.stringify, | 19 | stringify: JSON.stringify, |
20 | services, | 20 | services, |
21 | workspaces, | 21 | workspaces, |
22 | }) | 22 | }); |
23 | } | 23 | } |
24 | } | 24 | } |