automatic service registration à la Svelte

This commit is contained in:
2023-08-11 18:49:06 +02:00
parent 9903497867
commit f23f268b60
11 changed files with 95 additions and 49 deletions

View File

@@ -0,0 +1,9 @@
import { type ServiceHandler } from '../service';
export const handle: ServiceHandler = ({ config }) => {
const data = {};
if (config.apikey != undefined) {
//TODO: fetch data
}
return { data, componentPath: 'pihole/PiHoleContent.svelte' };
};