diff options
Diffstat (limited to 'server/main.go')
-rw-r--r-- | server/main.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/server/main.go b/server/main.go index 4737f17..a48611f 100644 --- a/server/main.go +++ b/server/main.go @@ -1,16 +1,17 @@ package main import ( + "database/sql" "embed" "flag" - "github.com/labstack/echo/v4" - "github.com/labstack/echo/v4/middleware" - "database/sql" "log" "math/rand" "net/http" "time" + "github.com/labstack/echo/v4" + "github.com/labstack/echo/v4/middleware" + _ "github.com/mattn/go-sqlite3" ) @@ -35,9 +36,9 @@ var ( func RegisterHandlers(e *echo.Echo) { e.Use(middleware.StaticWithConfig(middleware.StaticConfig{ - Skipper: nil, - Root: "dist", - Index: "index.html", + Skipper: nil, + Root: "dist", + Index: "index.html", HTML5: true, Filesystem: http.FS(dist), })) @@ -119,4 +120,4 @@ func generateShortID() string { id[i] = shortIDCharset[rand.Intn(len(shortIDCharset))] } return string(id) -}
\ No newline at end of file +} |