Adds a footer.
This commit is contained in:
@@ -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() };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user