mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use function arguments for route setup.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
a258ef58d8
commit
08a39d7f02
8 changed files with 38 additions and 30 deletions
|
@ -46,8 +46,8 @@ func (r *containerRouter) initRoutes() {
|
|||
router.NewGetRoute("/containers/{name:.*}/changes", r.getContainersChanges),
|
||||
router.NewGetRoute("/containers/{name:.*}/json", r.getContainersByName),
|
||||
router.NewGetRoute("/containers/{name:.*}/top", r.getContainersTop),
|
||||
router.Cancellable(router.NewGetRoute("/containers/{name:.*}/logs", r.getContainersLogs)),
|
||||
router.Cancellable(router.NewGetRoute("/containers/{name:.*}/stats", r.getContainersStats)),
|
||||
router.NewGetRoute("/containers/{name:.*}/logs", r.getContainersLogs, router.WithCancel),
|
||||
router.NewGetRoute("/containers/{name:.*}/stats", r.getContainersStats, router.WithCancel),
|
||||
router.NewGetRoute("/containers/{name:.*}/attach/ws", r.wsContainersAttach),
|
||||
router.NewGetRoute("/exec/{id:.*}/json", r.getExecByID),
|
||||
router.NewGetRoute("/containers/{name:.*}/archive", r.getContainersArchive),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue