mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-11 05:24:17 +00:00
18 lines
523 B
TypeScript
18 lines
523 B
TypeScript
import versionService from '$lib/services/version-service';
|
|
import type { AppVersionInformation } from '$lib/types/application-configuration';
|
|
import type { LayoutLoad } from './$types';
|
|
|
|
export const prerender = false;
|
|
|
|
export const load: LayoutLoad = async () => {
|
|
const versionInformation: AppVersionInformation = {
|
|
currentVersion: versionService.getCurrentVersion(),
|
|
newestVersion: await versionService.getNewestVersion(),
|
|
isUpToDate: await versionService.isUpToDate()
|
|
};
|
|
|
|
return {
|
|
versionInformation
|
|
};
|
|
};
|