Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e0af29

Browse files
committed
Fix: no-security on updatecheck
1 parent ffd5da8 commit 0e0af29

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

coderd/apidoc/docs.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,6 @@ const docTemplate = `{
430430
},
431431
"/updatecheck": {
432432
"get": {
433-
"security": [
434-
{
435-
"CoderSessionToken": []
436-
}
437-
],
438433
"produces": [
439434
"application/json"
440435
],

coderd/apidoc/swagger.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,6 @@
370370
},
371371
"/updatecheck": {
372372
"get": {
373-
"security": [
374-
{
375-
"CoderSessionToken": []
376-
}
377-
],
378373
"produces": ["application/json"],
379374
"tags": ["General"],
380375
"summary": "Update check",

coderd/updatecheck.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515

1616
// @Summary Update check
1717
// @ID update-check
18-
// @Security CoderSessionToken
1918
// @Produce json
2019
// @Tags General
2120
// @Success 200 {object} codersdk.UpdateCheckResponse

docs/api/general.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ To perform this operation, you must be authenticated by means of one of the foll
112112
```shell
113113
# Example request using curl
114114
curl -X GET http://coder-server:8080/api/v2/updatecheck \
115-
-H 'Accept: application/json' \
116-
-H 'Coder-Session-Token: API_KEY'
115+
-H 'Accept: application/json'
117116
```
118117

119118
`GET /updatecheck`
@@ -136,4 +135,4 @@ curl -X GET http://coder-server:8080/api/v2/updatecheck \
136135
| ------ | ------------------------------------------------------- | ----------- | ---------------------------------------------------------------------- |
137136
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [codersdk.UpdateCheckResponse](schemas.md#codersdkupdatecheckresponse) |
138137

139-
To perform this operation, you must be authenticated by means of one of the following methods: **CoderSessionToken**.
138+
undefined

0 commit comments

Comments
 (0)