mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 09:20:12 +00:00
refactor!: serve the static frontend trough the backend (#520)
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
17
frontend/src/routes/settings/+layout.ts
Normal file
17
frontend/src/routes/settings/+layout.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user