diff options
author | 2019-07-23 07:30:16 +0000 | |
---|---|---|
committer | 2019-07-23 07:30:16 +0000 | |
commit | f83526881ac7758638b1e7e0e1bcf2ab8cd13133 (patch) | |
tree | 83e38d253bf746e39b38d026fd9ba0717f626cad /src/k8splugin/api/api.go | |
parent | 40014c64df3250db72b41e05da3dd40746d3d6d3 (diff) | |
parent | e04fd6fa1f0abe6b18787b192e01164db1db06db (diff) |
Merge "Add a list api for instances"
Diffstat (limited to 'src/k8splugin/api/api.go')
-rw-r--r-- | src/k8splugin/api/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/k8splugin/api/api.go b/src/k8splugin/api/api.go index a6cdfc7a..ea7b5b26 100644 --- a/src/k8splugin/api/api.go +++ b/src/k8splugin/api/api.go @@ -38,6 +38,7 @@ func NewRouter(defClient rb.DefinitionManager, instHandler := instanceHandler{client: instClient} instRouter := router.PathPrefix("/v1").Subrouter() instRouter.HandleFunc("/instance", instHandler.createHandler).Methods("POST") + instRouter.HandleFunc("/instance", instHandler.listHandler).Methods("GET") instRouter.HandleFunc("/instance/{instID}", instHandler.getHandler).Methods("GET") instRouter.HandleFunc("/instance/{instID}", instHandler.deleteHandler).Methods("DELETE") // (TODO): Fix update method |