Add server config admin endpoint (#207)

* Add support for ending the inbound stream. Closes #191

* Add a simple success response to API requests

* Add server config admin endpoint
This commit is contained in:
Gabe Kangas
2020-10-02 00:02:42 -07:00
committed by GitHub
parent 9b7784634b
commit d8c43d2c56
4 changed files with 78 additions and 20 deletions

View File

@@ -57,6 +57,9 @@ func Start() error {
// Change the current streaming key in memory
http.HandleFunc("/api/admin/changekey", middleware.RequireAdminAuth(admin.ChangeStreamKey))
// Server config
http.HandleFunc("/api/admin/serverconfig", middleware.RequireAdminAuth(controllers.GetServerConfig))
port := config.Config.GetPublicWebServerPort()
log.Infof("Web server running on port: %d", port)