diff options
Diffstat (limited to 'src/routes/(app)/ark/+page.server.ts')
| -rw-r--r-- | src/routes/(app)/ark/+page.server.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/routes/(app)/ark/+page.server.ts b/src/routes/(app)/ark/+page.server.ts new file mode 100644 index 00000000..bac0a02a --- /dev/null +++ b/src/routes/(app)/ark/+page.server.ts @@ -0,0 +1,11 @@ +import getRates from "$lib/rates"; + +export async function load({ depends, parent }) { + depends("app:payments"); + depends("app:items"); + + const { user } = await parent(); + + const rates = await getRates(); + return { rate: rates[user.currency] }; +} |
