Initial commit

This commit is contained in:
Henri Burau
2024-06-03 18:07:27 +02:00
commit ca04cc51f3
43 changed files with 4440 additions and 0 deletions

16
routes/home.go Normal file
View File

@ -0,0 +1,16 @@
package routes
import (
"net/http"
"gitea.henriburau.de/haw-lan/cod4watcher/views/home"
)
func (s *Server) HandleHome(w http.ResponseWriter, r *http.Request) error {
captureList, err := s.cs.GetActiveCapures()
if err != nil {
return err
}
return Render(w, r, home.Index(captureList))
}