Making containers run and delete
This commit is contained in:
parent
2af0f297fe
commit
5f5f4904e0
5 changed files with 55 additions and 25 deletions
|
@ -15,8 +15,8 @@ func NewServer(supervisor *containerd.Supervisor) http.Handler {
|
|||
r: r,
|
||||
}
|
||||
r.HandleFunc("/containers", s.containers).Methods("GET")
|
||||
r.HandleFunc("/containers/{id:*}", s.createContainer).Methods("POST")
|
||||
r.HandleFunc("/containers/{id:*}", s.deleteContainer).Methods("DELETE")
|
||||
r.HandleFunc("/containers/{id:.*}", s.createContainer).Methods("POST")
|
||||
r.HandleFunc("/containers/{id:.*}", s.deleteContainer).Methods("DELETE")
|
||||
return s
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue