1
0
mirror of https://github.com/moby/moby.git synced 2025-07-30 18:23:29 +03:00

Create build router separate from image router.

Signed-off-by: Anusha Ragunathan <anusha@docker.com>
This commit is contained in:
Anusha Ragunathan
2015-12-17 16:17:50 -08:00
parent 6bf8844f11
commit f8dc044aec
8 changed files with 287 additions and 227 deletions

View File

@ -10,6 +10,7 @@ import (
"github.com/Sirupsen/logrus"
"github.com/docker/docker/api/server/httputils"
"github.com/docker/docker/api/server/router"
"github.com/docker/docker/api/server/router/build"
"github.com/docker/docker/api/server/router/container"
"github.com/docker/docker/api/server/router/local"
"github.com/docker/docker/api/server/router/network"
@ -177,6 +178,7 @@ func (s *Server) InitRouters(d *daemon.Daemon) {
s.addRouter(network.NewRouter(d))
s.addRouter(system.NewRouter(d))
s.addRouter(volume.NewRouter(d))
s.addRouter(build.NewRouter(d))
}
// addRouter adds a new router to the server.