diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 95bb16c..e3a0853 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,7 @@
-
+
@@ -33,27 +33,27 @@
- {
- "keyToString": {
- "DefaultGoTemplateProperty": "Go File",
- "Go Build.Backend.executor": "Run",
- "Go 构建.Backend.executor": "Run",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "RunOnceActivity.go.formatter.settings.were.checked": "true",
- "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": "features/consul",
- "go.import.settings.migrated": "true",
- "go.sdk.automatically.set": "true",
- "last_opened_file_path": "/Users/littlesheep/Documents/Projects/Hydrogen/Paperclip/pkg/internal/grpc",
- "node.js.detected.package.eslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "run.code.analysis.last.selected.profile": "pProject Default",
- "settings.editor.selected.configurable": "preferences.lookFeel"
+
+}]]>
@@ -109,7 +109,8 @@
-
+
+
true
diff --git a/Dockerfile b/Dockerfile
index 364cbac..179a2c0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,6 @@
# Building Backend
FROM golang:alpine as paperclip-server
-RUN apk add nodejs npm
-
WORKDIR /source
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs -o /dist ./pkg/main.go
diff --git a/pkg/internal/server/api/index.go b/pkg/internal/server/api/index.go
index 06950f6..55586af 100644
--- a/pkg/internal/server/api/index.go
+++ b/pkg/internal/server/api/index.go
@@ -3,7 +3,6 @@ package api
import "github.com/gofiber/fiber/v2"
func MapAPIs(app *fiber.App) {
- app.Get("/.well-known", getMetadata)
app.Get("/.well-known/destinations", getDestinations)
api := app.Group("/api").Name("API")
diff --git a/pkg/internal/server/api/well_known_api.go b/pkg/internal/server/api/well_known_api.go
index 1c5740e..0f76679 100644
--- a/pkg/internal/server/api/well_known_api.go
+++ b/pkg/internal/server/api/well_known_api.go
@@ -5,16 +5,6 @@ import (
"github.com/spf13/viper"
)
-func getMetadata(c *fiber.Ctx) error {
- return c.JSON(fiber.Map{
- "name": viper.GetString("name"),
- "domain": viper.GetString("domain"),
- "components": fiber.Map{
- "passport": viper.GetString("passport.endpoint"),
- },
- })
-}
-
func getDestinations(c *fiber.Ctx) error {
var data []string
for key := range viper.GetStringMap("destinations") {
diff --git a/settings.toml b/settings.toml
index 7b3669d..c1d532a 100644
--- a/settings.toml
+++ b/settings.toml
@@ -1,5 +1,4 @@
-name = "Solar Attachments"
-maintainer = "SmartSheep Studio"
+id = "paperclip01"
bind = "0.0.0.0:8443"
grpc_bind = "0.0.0.0:7443"