diff options
author | 2024-02-10 18:37:40 -0700 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | e1c47572a6235fd8fd20af888ac3a11c7ae1369d (patch) | |
tree | 2dccff36a441916d7014037cef3f7ce84a790cad /app/Controllers/Http/Dashboard/DataController.ts | |
parent | refactor: project maintenance (diff) | |
download | ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.gz ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.zst ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.zip |
updates
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 | } |