diff options
Diffstat (limited to 'cmd/web/apiv1.go')
| -rw-r--r-- | cmd/web/apiv1.go | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/cmd/web/apiv1.go b/cmd/web/apiv1.go index a24746c..9a39033 100644 --- a/cmd/web/apiv1.go +++ b/cmd/web/apiv1.go @@ -11,27 +11,6 @@ import ( func (a *App) HandleShareLink(w http.ResponseWriter, r *http.Request) { - // swagger:route GET /share-link share-link - // - // Returns the share link - // - // This will return the share link for the currently running server, - // i.e. not 127.0.0.1 but a URL with (usually) an IPv4 RFC1918 address. - // - // Consumes: - // - application/json - // - // Produces: - // - application/json - // - // Schemes: - // - http - // - // Deprecated: false - // - // Responses: - // 200: shareLinkResp - w.Header().Add("Content-type", "application/json") enc := json.NewEncoder(w) err := enc.Encode(a.ShareLink) @@ -40,40 +19,8 @@ func (a *App) HandleShareLink(w http.ResponseWriter, r *http.Request) { } } -// A shareLinkResp is an error that is used when the required input fails -// validation. -// swagger:response shareLinkResp -type shareLinkResp struct { - // - // in: body - Body struct { - // Example: http://10.0.0.99:8899/ - URL string - } -} - func (a *App) HandleDeleteV1(w http.ResponseWriter, r *http.Request) { - // swagger:route DELETE /lib/game/{game} game - // - // Deletes a game - // - // Delete a given game where the url param game is the game in question - // - // Consumes: - // - application/json - // - // Produces: - // - application/json - // - // Schemes: http, https - // - // Deprecated: false - // - // Responses: - // 200: ok - // 409: conflict - vars := mux.Vars(r) game, ok := vars["game"] |
