diff options
Diffstat (limited to 'internal/api/client/timelines')
| -rw-r--r-- | internal/api/client/timelines/home.go | 4 | ||||
| -rw-r--r-- | internal/api/client/timelines/list.go | 4 | ||||
| -rw-r--r-- | internal/api/client/timelines/public.go | 4 | ||||
| -rw-r--r-- | internal/api/client/timelines/tag.go | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/internal/api/client/timelines/home.go b/internal/api/client/timelines/home.go index 9a7276bdd..bfc1c7479 100644 --- a/internal/api/client/timelines/home.go +++ b/internal/api/client/timelines/home.go @@ -103,8 +103,12 @@ import ( // type: string // description: Links to the next and previous queries. // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '400': +// schema: +// "$ref": "#/definitions/error" // description: bad request func (m *Module) HomeTimelineGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/timelines/list.go b/internal/api/client/timelines/list.go index e76107f1d..e2f77ce1d 100644 --- a/internal/api/client/timelines/list.go +++ b/internal/api/client/timelines/list.go @@ -102,8 +102,12 @@ import ( // type: string // description: Links to the next and previous queries. // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '400': +// schema: +// "$ref": "#/definitions/error" // description: bad request func (m *Module) ListTimelineGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, diff --git a/internal/api/client/timelines/public.go b/internal/api/client/timelines/public.go index 5fa32ac03..4d8dead7c 100644 --- a/internal/api/client/timelines/public.go +++ b/internal/api/client/timelines/public.go @@ -104,8 +104,12 @@ import ( // type: string // description: Links to the next and previous queries. // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '400': +// schema: +// "$ref": "#/definitions/error" // description: bad request func (m *Module) PublicTimelineGETHandler(c *gin.Context) { var ( diff --git a/internal/api/client/timelines/tag.go b/internal/api/client/timelines/tag.go index daf88f528..8e77dd2fb 100644 --- a/internal/api/client/timelines/tag.go +++ b/internal/api/client/timelines/tag.go @@ -103,8 +103,12 @@ import ( // type: string // description: Links to the next and previous queries. // '401': +// schema: +// "$ref": "#/definitions/error" // description: unauthorized // '400': +// schema: +// "$ref": "#/definitions/error" // description: bad request func (m *Module) TagTimelineGETHandler(c *gin.Context) { authed, errWithCode := apiutil.TokenAuth(c, |
