mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-17 12:23:22 +00:00
add optional webui behind a build tag
This commit is contained in:
@@ -48,6 +48,8 @@ func (as *ApiServer) Start(config config.ApiConfig) {
|
||||
mux.HandleFunc("/schema/routes.schema.json", handleRoutesSchema)
|
||||
mux.HandleFunc("/schema/modules.schema.json", handleModulesSchema)
|
||||
mux.HandleFunc("/schema/processors.schema.json", handleProcessorsSchema)
|
||||
mux.HandleFunc("/ui", handleWebUI)
|
||||
mux.HandleFunc("/ui/", handleWebUI)
|
||||
|
||||
as.serverMu.Lock()
|
||||
defer as.serverMu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user