From 7d0a4755587205c92bb7acc17b1114020191ce6a Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Sun, 7 Dec 2025 21:28:36 +0800 Subject: [PATCH] Fix: remove alias update endpoint --- docs/docs.go | 7 ------- docs/swagger.json | 7 ------- docs/swagger.yaml | 5 ----- handlers/api/getAliasUpdate.go | 20 -------------------- 4 files changed, 39 deletions(-) delete mode 100644 handlers/api/getAliasUpdate.go diff --git a/docs/docs.go b/docs/docs.go index ea4c661..19f8529 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -19,13 +19,6 @@ const docTemplate = `{ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { - "/api/alias-update": { - "get": { - "description": "get update notification using websocket", - "summary": "Get notification when alias update", - "responses": {} - } - }, "/api/alias/{id}": { "delete": { "description": "delete alias along with the links", diff --git a/docs/swagger.json b/docs/swagger.json index 46c903b..526842a 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -11,13 +11,6 @@ }, "basePath": "/", "paths": { - "/api/alias-update": { - "get": { - "description": "get update notification using websocket", - "summary": "Get notification when alias update", - "responses": {} - } - }, "/api/alias/{id}": { "delete": { "description": "delete alias along with the links", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index dea2a50..16d6f8c 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -50,11 +50,6 @@ info: title: Golang 2025 Final Project version: 0.0.1 paths: - /api/alias-update: - get: - description: get update notification using websocket - responses: {} - summary: Get notification when alias update /api/alias/{id}: delete: description: delete alias along with the links diff --git a/handlers/api/getAliasUpdate.go b/handlers/api/getAliasUpdate.go deleted file mode 100644 index 207e12d..0000000 --- a/handlers/api/getAliasUpdate.go +++ /dev/null @@ -1,20 +0,0 @@ -package api - -import ( - "net/http" - - "gitea.konchin.com/go2025/backend/utils" - "github.com/uptrace/bunrouter" -) - -// GetAliasUpdate -// -// @summary Get notification when alias update -// @description get update notification using websocket -// @router /api/alias-update [get] -func (self *Handlers) GetAliasUpdate( - w http.ResponseWriter, req bunrouter.Request, -) error { - // TODO - return utils.Success(w) -}