mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: correct SCIM Swagger try it out URLs (#24779)
This commit is contained in:
+3
-3
@@ -20,7 +20,7 @@ import (
|
||||
// @Tags Users
|
||||
// @Param user path string true "User ID, name, or me"
|
||||
// @Success 200 {object} codersdk.GitSSHKey
|
||||
// @Router /users/{user}/gitsshkey [put]
|
||||
// @Router /api/v2/users/{user}/gitsshkey [put]
|
||||
func (api *API) regenerateGitSSHKey(rw http.ResponseWriter, r *http.Request) {
|
||||
var (
|
||||
ctx = r.Context()
|
||||
@@ -84,7 +84,7 @@ func (api *API) regenerateGitSSHKey(rw http.ResponseWriter, r *http.Request) {
|
||||
// @Tags Users
|
||||
// @Param user path string true "User ID, name, or me"
|
||||
// @Success 200 {object} codersdk.GitSSHKey
|
||||
// @Router /users/{user}/gitsshkey [get]
|
||||
// @Router /api/v2/users/{user}/gitsshkey [get]
|
||||
func (api *API) gitSSHKey(rw http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
user := httpmw.UserParam(r)
|
||||
@@ -113,7 +113,7 @@ func (api *API) gitSSHKey(rw http.ResponseWriter, r *http.Request) {
|
||||
// @Produce json
|
||||
// @Tags Agents
|
||||
// @Success 200 {object} agentsdk.GitSSHKey
|
||||
// @Router /workspaceagents/me/gitsshkey [get]
|
||||
// @Router /api/v2/workspaceagents/me/gitsshkey [get]
|
||||
func (api *API) agentGitSSHKey(rw http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
agent := httpmw.WorkspaceAgent(r)
|
||||
|
||||
Reference in New Issue
Block a user