aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/static.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/handler/static.go')
-rw-r--r--pkg/handler/static.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/pkg/handler/static.go b/pkg/handler/static.go
deleted file mode 100644
index 9f312f4..0000000
--- a/pkg/handler/static.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package handler
-
-import (
- "io/fs"
- "net/http"
-
- "git.gabrielgio.me/cerrado/static"
-)
-
-func NewStaticHander(prefix string) (http.Handler, error) {
- staticFs, err := fs.Sub(static.Static, ".")
- if err != nil {
- return nil, err
- }
-
- handler := http.StripPrefix(prefix, http.FileServer(http.FS(staticFs)))
- return handler, nil
-}