@@ -836,7 +836,7 @@ func main() {
836836 mux .Handle ("/cameras/{camera}" , http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
837837 http .ServeFileFS (w , r , sub , "index.html" )
838838 }))
839- mux .Handle ("/live-view " , http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
839+ mux .Handle ("/cameras/{camera}/timeline " , http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
840840 http .ServeFileFS (w , r , sub , "index.html" )
841841 }))
842842 mux .Handle ("/recordings" , http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
@@ -845,6 +845,9 @@ func main() {
845845 mux .Handle ("/recordings/{file}" , http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
846846 http .ServeFileFS (w , r , sub , "index.html" )
847847 }))
848+ mux .Handle ("/live-view" , http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
849+ http .ServeFileFS (w , r , sub , "index.html" )
850+ }))
848851 mux .Handle ("/" , http .FileServerFS (sub ))
849852
850853 if err := http .ListenAndServe (":3000" , mux ); err != nil {
0 commit comments