Include time taken to render in footer
This commit is contained in:
parent
7fefb689c7
commit
733aa237d1
4 changed files with 17 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue