diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-08-18 20:20:13 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-08-18 20:20:13 -0400 |
| commit | f4fcd237b2d0eb950fc15a8af1fb0894b6ad6359 (patch) | |
| tree | fd923697ff46cd00da1daa311f9f6504ebb66c5e /cmd/web/apiv1.go | |
| parent | 3156765985f2e7ad7b533c893de9d5ce56aab0ee (diff) | |
| download | steam-export-f4fcd237b2d0eb950fc15a8af1fb0894b6ad6359.tar.gz steam-export-f4fcd237b2d0eb950fc15a8af1fb0894b6ad6359.tar.xz | |
Start poking at swaggo instead of go-swagger
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"] |
