summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_images.go
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2020-03-30 14:01:29 -0600
committerEd Santiago <santiago@redhat.com>2020-04-14 11:27:44 -0600
commitba26c763c540b7ff16986fab59ca656aa6806ba7 (patch)
tree2a094483e19799ccc58d06c1dae3491a45edadf1 /pkg/api/server/register_images.go
parent0d01f09bf4103538a6011019b690e5aa11c377db (diff)
downloadpodman-ba26c763c540b7ff16986fab59ca656aa6806ba7.tar.gz
podman-ba26c763c540b7ff16986fab59ca656aa6806ba7.tar.bz2
podman-ba26c763c540b7ff16986fab59ca656aa6806ba7.zip
swagger-check: new CI tool to cross-check swagger
New script cross-references r.Handle() and r.HandleFunc() calls against the preceding '// swagger:operation' comments, and exits failure (with descriptive error messages) if any comments do not match the code. This script should not be necessary: the swagger comments should be autogenerated from the source code. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'pkg/api/server/register_images.go')
-rw-r--r--pkg/api/server/register_images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go
index 7dd887037..6cc6f0cfa 100644
--- a/pkg/api/server/register_images.go
+++ b/pkg/api/server/register_images.go
@@ -1154,7 +1154,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// $ref: "#/responses/NoSuchContainer"
// 500:
// $ref: "#/responses/InternalError"
- r.HandleFunc(VersionedPath("/libpod/images/{name}/changes"), s.APIHandler(compat.Changes))
+ r.HandleFunc(VersionedPath("/libpod/images/{name}/changes"), s.APIHandler(compat.Changes)).Methods(http.MethodGet)
return nil
}