mirror of
https://github.com/khoaliber/dockhand.git
synced 2026-03-09 05:39:05 +00:00
Initial commit
This commit is contained in:
9
routes/images/+page.server.ts
Normal file
9
routes/images/+page.server.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { PageServerLoad } from './$types';
|
||||
import { getScannerSettings } from '$lib/server/scanner';
|
||||
|
||||
export const load: PageServerLoad = async () => {
|
||||
const { scanner } = await getScannerSettings();
|
||||
return {
|
||||
scannerEnabled: scanner !== 'none'
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user