Consolidate config files and surface frontend values via API. Closes #30

This commit is contained in:
Gabe Kangas
2020-06-28 15:10:00 -07:00
parent a9b8a70e8a
commit 73b6937496
6 changed files with 63 additions and 30 deletions

View File

@ -29,6 +29,9 @@ func Start() error {
// chat rest api
http.HandleFunc("/chat", controllers.GetChatMessages)
// web config api
http.HandleFunc("/config", controllers.GetWebConfig)
port := config.Config.WebServerPort
log.Printf("Starting public web server on port: %d", port)