Add realtime stats for filesystem

This commit is contained in:
2023-05-19 21:45:42 +02:00
parent 98c725f291
commit 794a38da19
8 changed files with 133 additions and 7 deletions

View File

@@ -387,6 +387,12 @@ func (wc *WebController) serveForm(
}
}
func (wc *WebController) serveForbidden(w http.ResponseWriter, r *http.Request) {
log.Debug("Forbidden: %s", r.URL)
w.WriteHeader(http.StatusForbidden)
wc.templates.Get().ExecuteTemplate(w, "403", wc.newTemplateData(w, r))
}
func (wc *WebController) serveNotFound(w http.ResponseWriter, r *http.Request) {
log.Debug("Not Found: %s", r.URL)
w.WriteHeader(http.StatusNotFound)