2016-05-16 11:50:55 -04:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2016-05-12 10:52:00 -04:00
|
|
|
"github.com/docker/docker/api/server/httputils"
|
2016-05-16 11:50:55 -04:00
|
|
|
"github.com/docker/docker/api/server/router"
|
2016-05-12 10:52:00 -04:00
|
|
|
checkpointrouter "github.com/docker/docker/api/server/router/checkpoint"
|
|
|
|
"github.com/docker/docker/daemon"
|
2016-05-16 11:50:55 -04:00
|
|
|
)
|
|
|
|
|
2016-05-12 10:52:00 -04:00
|
|
|
func addExperimentalRouters(routers []router.Router, d *daemon.Daemon, decoder httputils.ContainerDecoder) []router.Router {
|
2016-10-06 10:09:54 -04:00
|
|
|
if !d.HasExperimental() {
|
|
|
|
return []router.Router{}
|
|
|
|
}
|
2016-11-09 20:49:09 -05:00
|
|
|
return append(routers, checkpointrouter.NewRouter(d, decoder))
|
2016-05-16 11:50:55 -04:00
|
|
|
}
|