diff --git a/server/server.go b/server/server.go index c45831d..bf1a09e 100644 --- a/server/server.go +++ b/server/server.go @@ -50,14 +50,6 @@ func Server(config *ServerConfig) *fiber.App { return cors.New(corsConfig)(c) }) - // Serve the Solid dashboard - app.Use("/", filesystem.New(filesystem.Config{ - Browse: false, - Index: "index.html", - Root: http.FS(dist), - PathPrefix: "/dist", - })) - // Serve the assets // Middleware to track the latency of each request @@ -226,5 +218,13 @@ func Server(config *ServerConfig) *fiber.App { }) + // Serve the Solid dashboard + app.Use("/", filesystem.New(filesystem.Config{ + Browse: false, + Index: "index.html", + Root: http.FS(dist), + PathPrefix: "/dist", + })) + return app }