First pass at bundling web app into service. Working.

This commit is contained in:
Gabe Kangas
2022-06-19 15:30:32 -07:00
parent 22ac8035fe
commit 78c6189c02
241 changed files with 437 additions and 178 deletions

View File

@@ -26,12 +26,8 @@ import (
// Start starts the router for the http, ws, and rtmp.
func Start() error {
// static files
http.HandleFunc("/admin", middleware.RequireAdminAuth(controllers.IndexHandler))
http.HandleFunc("/", controllers.IndexHandler)
http.HandleFunc("/recordings", controllers.IndexHandler)
http.HandleFunc("/schedule", controllers.IndexHandler)
// admin static files
http.HandleFunc("/admin/", middleware.RequireAdminAuth(admin.ServeAdmin))
// status of the system
http.HandleFunc("/api/status", controllers.GetStatus)