add enabled property to API

This commit is contained in:
Joel Wetzell
2026-04-02 11:07:11 -05:00
parent b25fbe23ae
commit 4ee3f99ee3
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@ export type ConfigState = {
}; };
export type ApiConfig = { export type ApiConfig = {
enabled: boolean;
port: number; port: number;
}; };
+4 -1
View File
@@ -107,7 +107,10 @@ export class ConfigService {
setEmptyConfig() { setEmptyConfig() {
console.log('Setting empty config'); console.log('Setting empty config');
this.updateCurrentlyShownConfig({ this.updateCurrentlyShownConfig({
api: { port: 8080 }, api: {
enabled: true,
port: 8080
},
modules: [], modules: [],
routes: [], routes: [],
}); });