converted dir tree
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"net/rpc"
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/cors"
|
||||
"github.com/gofiber/fiber/v2/middleware/filesystem"
|
||||
"github.com/gofiber/websocket/v2"
|
||||
)
|
||||
@@ -29,6 +30,8 @@ func RunBlocking(ctx context.Context) {
|
||||
|
||||
app := fiber.New()
|
||||
|
||||
app.Use(cors.New())
|
||||
|
||||
app.Use("/", filesystem.New(filesystem.Config{
|
||||
Root: http.FS(fe),
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user