pkg/httpx => github.com/tkw1536/pkglib/httpx

This commit is contained in:
Tom Wiesing 2023-02-26 10:08:17 +01:00
parent 5e89fadeeb
commit 010fd536ea
No known key found for this signature in database
35 changed files with 37 additions and 1081 deletions

View file

@ -5,7 +5,7 @@ import (
"net/http"
"github.com/FAU-CDI/wisski-distillery/internal/dis/component"
"github.com/FAU-CDI/wisski-distillery/pkg/httpx"
"github.com/tkw1536/pkglib/httpx"
_ "embed"
)
@ -41,8 +41,8 @@ var faviconRoute = httpx.Response{
var logoSVGRoute = httpx.Response{
ContentType: "image/svg+xml",
Body: httpx.MinifySVG(logoSVG),
}
Body: logoSVG,
}.Minify()
func (*Logo) HandleRoute(ctx context.Context, path string) (http.Handler, error) {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {