mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-12 09:53:40 +00:00
add enabled property to API
This commit is contained in:
@@ -11,6 +11,7 @@ export type ConfigState = {
|
||||
};
|
||||
|
||||
export type ApiConfig = {
|
||||
enabled: boolean;
|
||||
port: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -107,7 +107,10 @@ export class ConfigService {
|
||||
setEmptyConfig() {
|
||||
console.log('Setting empty config');
|
||||
this.updateCurrentlyShownConfig({
|
||||
api: { port: 8080 },
|
||||
api: {
|
||||
enabled: true,
|
||||
port: 8080
|
||||
},
|
||||
modules: [],
|
||||
routes: [],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user