File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 11package main
22
33import (
4- "app/config/database"
5- "app/fixtures"
6- "app/handler"
7- "app/template"
8- "os"
9-
104 "github.com/gofiber/fiber/v3"
115 "github.com/gofiber/fiber/v3/middleware/cors"
126 "github.com/gofiber/fiber/v3/middleware/logger"
137 "github.com/gofiber/fiber/v3/middleware/static"
8+
9+ "app/config/database"
10+ "app/fixtures"
11+ "app/handler"
12+ "app/template"
1413)
1514
1615const (
@@ -60,7 +59,7 @@ func main() {
6059
6160 // Serve static files
6261 app .All ("/*" , static .New ("" , static.Config {
63- FS : os . DirFS ( template .Dist () ),
62+ FS : template .Dist (),
6463 // TODO: Migrate to NotFoundHandler (fiber.Handler) - NotFoundFile is deprecated
6564 // NotFoundFile: "index.html",
6665 IndexNames : []string {"index.html" },
You can’t perform that action at this time.
0 commit comments