Adds a footer.

This commit is contained in:
2023-09-20 10:56:14 +02:00
parent 668eb715af
commit e58713b7ac
3 changed files with 10 additions and 6 deletions

View File

@@ -2,11 +2,13 @@ import { clientConfig, serverConfig } from '$lib/server/config';
import type { PageServerLoad } from './$types';
import { getServiceHandler } from '$lib/services/services';
export const load: PageServerLoad = ({ fetch }) => {
export const load: PageServerLoad = ({ fetch, getClientAddress }) => {
const serviceData: Array<Array<unknown>> = [];
const config = clientConfig();
for (const [i, group] of serverConfig().services.entries()) {
const privateConfig = serverConfig();
for (const [i, group] of privateConfig.services.entries()) {
const groupData: Array<unknown> = [];
serviceData.push(groupData);
for (const [j, service] of group.items.entries()) {
@@ -20,5 +22,5 @@ export const load: PageServerLoad = ({ fetch }) => {
}
}
return { config, serviceData };
return { config, serviceData, location: getClientAddress() };
};