From d371ee603795ea1da7b2618b47dd3c0029387630 Mon Sep 17 00:00:00 2001 From: Monirzadeh <25131576+Monirzadeh@users.noreply.github.com> Date: Fri, 17 Nov 2023 13:19:47 +0330 Subject: [PATCH] fix: typo in URL under documentation (#778) --- docs/swagger/docs.go | 2 +- docs/swagger/swagger.json | 2 +- docs/swagger/swagger.yaml | 2 +- internal/http/routes/api/v1/bookmarks.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/swagger/docs.go b/docs/swagger/docs.go index 75d21c6..ef6f0d9 100644 --- a/docs/swagger/docs.go +++ b/docs/swagger/docs.go @@ -126,7 +126,7 @@ const docTemplate = `{ } } }, - "/api/v1/bookmaeks/cache": { + "/api/v1/bookmarks/cache": { "put": { "produces": [ "application/json" diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index 88c3373..9289089 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -115,7 +115,7 @@ } } }, - "/api/v1/bookmaeks/cache": { + "/api/v1/bookmarks/cache": { "put": { "produces": [ "application/json" diff --git a/docs/swagger/swagger.yaml b/docs/swagger/swagger.yaml index 89b0b4c..611cff6 100644 --- a/docs/swagger/swagger.yaml +++ b/docs/swagger/swagger.yaml @@ -195,7 +195,7 @@ paths: summary: Refresh a token for an account tags: - Auth - /api/v1/bookmaeks/cache: + /api/v1/bookmarks/cache: put: parameters: - description: Update Cache Payload diff --git a/internal/http/routes/api/v1/bookmarks.go b/internal/http/routes/api/v1/bookmarks.go index 7b7da45..78da720 100644 --- a/internal/http/routes/api/v1/bookmarks.go +++ b/internal/http/routes/api/v1/bookmarks.go @@ -204,7 +204,7 @@ func NewBookmarksPIRoutes(logger *logrus.Logger, deps *config.Dependencies) *Boo // @Produce json // @Success 200 {object} model.Bookmark // @Failure 403 {object} nil "Token not provided/invalid" -// @Router /api/v1/bookmaeks/cache [put] +// @Router /api/v1/bookmarks/cache [put] func (r *BookmarksAPIRoutes) updateCache(c *gin.Context) { ctx := context.NewContextFromGin(c) if !ctx.UserIsLogged() {