mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
c410222e42
Signed-off-by: Victor Vieux <vieux@docker.com>
15 lines
478 B
Go
15 lines
478 B
Go
package main
|
|
|
|
import (
|
|
"github.com/docker/docker/api/server/httputils"
|
|
"github.com/docker/docker/api/server/router"
|
|
checkpointrouter "github.com/docker/docker/api/server/router/checkpoint"
|
|
"github.com/docker/docker/daemon"
|
|
)
|
|
|
|
func addExperimentalRouters(routers []router.Router, d *daemon.Daemon, decoder httputils.ContainerDecoder) []router.Router {
|
|
if !d.HasExperimental() {
|
|
return []router.Router{}
|
|
}
|
|
return append(routers, checkpointrouter.NewRouter(d, decoder))
|
|
}
|