diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 936825d..fd4c854 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,12 +4,8 @@
-
+
-
-
-
-
@@ -27,7 +23,7 @@
@@ -54,7 +50,7 @@
"RunOnceActivity.go.migrated.go.modules.settings": "true",
"RunOnceActivity.go.modules.automatic.dependencies.download": "true",
"RunOnceActivity.go.modules.go.list.on.any.changes.was.set": "true",
- "git-widget-placeholder": "refactor/use-capital-as-frontend",
+ "git-widget-placeholder": "master",
"go.import.settings.migrated": "true",
"go.sdk.automatically.set": "true",
"last_opened_file_path": "/Users/littlesheep/Documents/Projects/Hydrogen/Passport/web/src/components/admin",
diff --git a/pkg/internal/server/server.go b/pkg/internal/server/server.go
index 23f1c69..98b9bb2 100644
--- a/pkg/internal/server/server.go
+++ b/pkg/internal/server/server.go
@@ -1,18 +1,14 @@
package server
import (
- "net/http"
- "path/filepath"
"strings"
"git.solsynth.dev/hydrogen/passport/pkg/internal/server/admin"
"git.solsynth.dev/hydrogen/passport/pkg/internal/server/api"
"git.solsynth.dev/hydrogen/passport/pkg/internal/server/exts"
- "github.com/gofiber/fiber/v2/middleware/filesystem"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/cors"
- "github.com/gofiber/fiber/v2/middleware/favicon"
"github.com/gofiber/fiber/v2/middleware/idempotency"
"github.com/gofiber/fiber/v2/middleware/logger"
jsoniter "github.com/json-iterator/go"
@@ -63,18 +59,6 @@ func NewServer() *HTTPApp {
admin.MapAdminAPIs(app, "/api/admin")
api.MapAPIs(app, "/api")
- app.Use(filesystem.New(filesystem.Config{
- Root: http.Dir(viper.GetString("frontend_app")),
- Index: "index.html",
- NotFoundFile: "index.html",
- MaxAge: 3600,
- }))
-
- app.Use(favicon.New(favicon.Config{
- File: filepath.Join(viper.GetString("frontend_app"), "favicon.png"),
- URL: "/favicon.png",
- }))
-
return &HTTPApp{app}
}