From d12f0b7da95ecb213a91c012d11ffa96788b090c Mon Sep 17 00:00:00 2001 From: PickHD Date: Tue, 9 May 2023 18:59:52 +0700 Subject: [PATCH] fix (swagger) : fixing annotation status Success from 200 to 301 --- shortener/internal/v1/controller/short.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortener/internal/v1/controller/short.go b/shortener/internal/v1/controller/short.go index 8db9ad4..f3fa60e 100644 --- a/shortener/internal/v1/controller/short.go +++ b/shortener/internal/v1/controller/short.go @@ -82,7 +82,7 @@ func (sc *ShortControllerImpl) GetListShortenerByUserID(ctx context.Context, req // @Accept json // @Produce json // @Param short_url path string true "short urls" -// @Success 200 {object} helper.BaseResponse +// @Success 301 {object} helper.BaseResponse // @Failure 400 {object} helper.BaseResponse // @Failure 404 {object} helper.BaseResponse // @Failure 500 {object} helper.BaseResponse