Include time taken to render in footer

This commit is contained in:
Tom Wiesing 2023-11-10 20:34:20 +01:00
parent 7fefb689c7
commit 733aa237d1
No known key found for this signature in database
4 changed files with 17 additions and 1 deletions

View file

@ -11,6 +11,7 @@ import (
"github.com/FAU-CDI/wisski-distillery/internal/models"
"github.com/tkw1536/pkglib/contextx"
"github.com/tkw1536/pkglib/httpx"
"github.com/tkw1536/pkglib/httpx/timewrap"
"github.com/tkw1536/pkglib/mux"
"github.com/gorilla/csrf"
@ -113,6 +114,8 @@ func (server *Server) Server(ctx context.Context, progress io.Writer) (public ht
public = WithCSP(public, models.ContentSecurityPolicyDistilery)
internal = WithCSP(internal, models.ContentSecurityPolicyNothing)
public = timewrap.Wrap(public)
err = nil
return
}