Skip to content

Commit e5afae2

Browse files
committed
Fix wrong HTTP method in docs for /internal/authenticate
1 parent 1d8bf1d commit e5afae2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const docTemplate = `{
1616
"basePath": "{{.BasePath}}",
1717
"paths": {
1818
"/internal/authenticate/{username}": {
19-
"post": {
19+
"get": {
2020
"description": "If the initial request was successful, the connection is kept alive and updates are sent using server sent events (SSE).",
2121
"produces": [
2222
"application/json"

docs/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"basePath": "/api",
1111
"paths": {
1212
"/internal/authenticate/{username}": {
13-
"post": {
13+
"get": {
1414
"description": "If the initial request was successful, the connection is kept alive and updates are sent using server sent events (SSE).",
1515
"produces": [
1616
"application/json"

docs/swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ info:
197197
version: "0.1"
198198
paths:
199199
/internal/authenticate/{username}:
200-
post:
200+
get:
201201
description: If the initial request was successful, the connection is kept alive
202202
and updates are sent using server sent events (SSE).
203203
produces:

handler/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ var keepalive = []byte{'\r', '\n'} // keepalive message (just newline without co
127127
// @Failure 400 "Bad Request"
128128
// @Failure 401 "Unauthorized"
129129
// @Failure 500 "Internal Server Error"
130-
// @Router /internal/authenticate/{username} [post]
130+
// @Router /internal/authenticate/{username} [get]
131131
func (tc *TokenHandler) WatchAuthChanges(c *fiber.Ctx) error {
132132
c.Set("Content-Type", "text/event-stream")
133133
c.Set("Cache-Control", "no-cache")

0 commit comments

Comments
 (0)