func (r *router) initRoutes() {
	r.routes = []dkrouter.Route{
		// HEAD
		NewHeadRoute("/containers/{name:.*}/archive", r.headContainersArchive),
		// OPTIONS
		NewOptionsRoute("/", optionsHandler),
		// GET
		NewGetRoute("/_ping", pingHandler),
		NewGetRoute("/events", r.getEvents),
		NewGetRoute("/info", r.getInfo),
		NewGetRoute("/version", r.getVersion),
		NewGetRoute("/images/json", r.getImagesJSON),
		NewGetRoute("/images/search", r.getImagesSearch),
		NewGetRoute("/images/get", r.getImagesGet),
		NewGetRoute("/images/{name:.*}/get", r.getImagesGet),
		NewGetRoute("/images/{name:.*}/history", r.getImagesHistory),
		NewGetRoute("/images/{name:.*}/json", r.getImagesByName),
		NewGetRoute("/containers/json", r.getContainersJSON),
		NewGetRoute("/containers/{name:.*}/export", r.getContainersExport),
		NewGetRoute("/containers/{name:.*}/changes", r.getContainersChanges),
		NewGetRoute("/containers/{name:.*}/json", r.getContainersByName),
		NewGetRoute("/containers/{name:.*}/top", r.getContainersTop),
		NewGetRoute("/containers/{name:.*}/logs", r.getContainersLogs),
		NewGetRoute("/containers/{name:.*}/stats", r.getContainersStats),
		NewGetRoute("/containers/{name:.*}/attach/ws", r.wsContainersAttach),
		NewGetRoute("/exec/{id:.*}/json", r.getExecByID),
		NewGetRoute("/containers/{name:.*}/archive", r.getContainersArchive),
		NewGetRoute("/volumes", r.getVolumesList),
		NewGetRoute("/volumes/{name:.*}", r.getVolumeByName),
		// POST
		NewPostRoute("/auth", r.postAuth),
		NewPostRoute("/commit", r.postCommit),
		NewPostRoute("/build", r.postBuild),
		NewPostRoute("/images/create", r.postImagesCreate),
		NewPostRoute("/images/load", r.postImagesLoad),
		NewPostRoute("/images/{name:.*}/push", r.postImagesPush),
		NewPostRoute("/images/{name:.*}/tag", r.postImagesTag),
		NewPostRoute("/containers/create", r.postContainersCreate),
		NewPostRoute("/containers/{name:.*}/kill", r.postContainersKill),
		NewPostRoute("/containers/{name:.*}/pause", r.postContainersPause),
		NewPostRoute("/containers/{name:.*}/unpause", r.postContainersUnpause),
		NewPostRoute("/containers/{name:.*}/restart", r.postContainersRestart),
		NewPostRoute("/containers/{name:.*}/start", r.postContainersStart),
		NewPostRoute("/containers/{name:.*}/stop", r.postContainersStop),
		NewPostRoute("/containers/{name:.*}/wait", r.postContainersWait),
		NewPostRoute("/containers/{name:.*}/resize", r.postContainersResize),
		NewPostRoute("/containers/{name:.*}/attach", r.postContainersAttach),
		NewPostRoute("/containers/{name:.*}/copy", r.postContainersCopy),
		NewPostRoute("/containers/{name:.*}/exec", r.postContainerExecCreate),
		NewPostRoute("/exec/{name:.*}/start", r.postContainerExecStart),
		NewPostRoute("/exec/{name:.*}/resize", r.postContainerExecResize),
		NewPostRoute("/containers/{name:.*}/rename", r.postContainerRename),
		NewPostRoute("/volumes/create", r.postVolumesCreate),
		// PUT
		NewPutRoute("/containers/{name:.*}/archive", r.putContainersArchive),
		// DELETE
		NewDeleteRoute("/containers/{name:.*}", r.deleteContainers),
		NewDeleteRoute("/images/{name:.*}", r.deleteImages),
		NewDeleteRoute("/volumes/{name:.*}", r.deleteVolumes),
	}
}
// initRoutes initializes the routes in this router
initRoutes initializes the routes in this router
// initRoutes initializes the routes in this router
func (r *router) initRoutes() {
	r.routes = []dkrouter.Route{
		NewHeadRoute("/containers/{name:.*}/archive", r.headContainersArchive),
		NewOptionsRoute("/", optionsHandler),
		NewGetRoute("/_ping", pingHandler),
		NewGetRoute("/events", r.getEvents),
		NewGetRoute("/info", r.getInfo),
		NewGetRoute("/version", r.getVersion),
		NewGetRoute("/images/json", r.getImagesJSON),
		NewGetRoute("/images/search", r.getImagesSearch),
		NewGetRoute("/images/get", r.getImagesGet),
		NewGetRoute("/images/{name:.*}/get", r.getImagesGet),
		NewGetRoute("/images/{name:.*}/history", r.getImagesHistory),
		NewGetRoute("/images/{name:.*}/json", r.getImagesByName),
		NewGetRoute("/containers/json", r.getContainersJSON),
		NewGetRoute("/containers/{name:.*}/export", r.getContainersExport),
		NewGetRoute("/containers/{name:.*}/changes", r.getContainersChanges),
		NewGetRoute("/containers/{name:.*}/json", r.getContainersByName),
		NewGetRoute("/containers/{name:.*}/top", r.getContainersTop),
		NewGetRoute("/containers/{name:.*}/logs", r.getContainersLogs),
		NewGetRoute("/containers/{name:.*}/stats", r.getContainersStats),
		NewGetRoute("/containers/{name:.*}/attach/ws", r.wsContainersAttach),
		NewGetRoute("/exec/{id:.*}/json", r.getExecByID),
		NewGetRoute("/containers/{name:.*}/archive", r.getContainersArchive),
		NewGetRoute("/volumes", r.getVolumesList),
		NewGetRoute("/volumes/{name:.*}", r.getVolumeByName),
		NewPostRoute("/auth", r.postAuth),
		NewPostRoute("/commit", r.postCommit),
		NewPostRoute("/build", r.postBuild),
		NewPostRoute("/images/create", r.postImagesCreate),
		NewPostRoute("/images/load", r.postImagesLoad),
		NewPostRoute("/images/{name:.*}/push", r.postImagesPush),
		NewPostRoute("/images/{name:.*}/tag", r.postImagesTag),
		NewPostRoute("/containers/create", r.postContainersCreate),
		NewPostRoute("/containers/{name:.*}/kill", r.postContainersKill),
		NewPostRoute("/containers/{name:.*}/pause", r.postContainersPause),
		NewPostRoute("/containers/{name:.*}/unpause", r.postContainersUnpause),
		NewPostRoute("/containers/{name:.*}/restart", r.postContainersRestart),
		NewPostRoute("/containers/{name:.*}/start", r.postContainersStart),
		NewPostRoute("/containers/{name:.*}/stop", r.postContainersStop),
		NewPostRoute("/containers/{name:.*}/wait", r.postContainersWait),
		NewPostRoute("/containers/{name:.*}/resize", r.postContainersResize),
		NewPostRoute("/containers/{name:.*}/attach", r.postContainersAttach),
		NewPostRoute("/containers/{name:.*}/copy", r.postContainersCopy),
		NewPostRoute("/containers/{name:.*}/exec", r.postContainerExecCreate),
		NewPostRoute("/exec/{name:.*}/start", r.postContainerExecStart),
		NewPostRoute("/exec/{name:.*}/resize", r.postContainerExecResize),
		NewPostRoute("/containers/{name:.*}/rename", r.postContainerRename),
		NewPostRoute("/volumes/create", r.postVolumesCreate),
		NewPutRoute("/containers/{name:.*}/archive", r.putContainersArchive),
		NewDeleteRoute("/containers/{name:.*}", r.deleteContainers),
		NewDeleteRoute("/images/{name:.*}", r.deleteImages),
		NewDeleteRoute("/volumes/{name:.*}", r.deleteVolumes),
	}
}
func ( r * router ) initRoutes ( ) { r . routes = [ ] dkrouter . Route { NewHeadRoute ( " " , r . headContainersArchive ) , NewOptionsRoute ( " " , optionsHandler ) , NewGetRoute ( " " , pingHandler ) , NewGetRoute ( " " , r . getEvents ) , NewGetRoute ( " " , r . getInfo ) , NewGetRoute ( " " , r . getVersion ) , NewGetRoute ( " " , r . getImagesJSON ) , NewGetRoute ( " " , r . getImagesSearch ) , NewGetRoute ( " " , r . getImagesGet ) , NewGetRoute ( " " , r . getImagesGet ) , NewGetRoute ( " " , r . getImagesHistory ) , NewGetRoute ( " " , r . getImagesByName ) , NewGetRoute ( " " , r . getContainersJSON ) , NewGetRoute ( " " , r . getContainersExport ) , NewGetRoute ( " " , r . getContainersChanges ) , NewGetRoute ( " " , r . getContainersByName ) , NewGetRoute ( " " , r . getContainersTop ) , NewGetRoute ( " " , r . getContainersLogs ) , NewGetRoute ( " " , r . getContainersStats ) , NewGetRoute ( " " , r . wsContainersAttach ) , NewGetRoute ( " " , r . getExecByID ) , NewGetRoute ( " " , r . getContainersArchive ) , NewGetRoute ( " " , r . getVolumesList ) , NewGetRoute ( " " , r . getVolumeByName ) , NewPostRoute ( " " , r . postAuth ) , NewPostRoute ( " " , r . postCommit ) , NewPostRoute ( " " , r . postBuild ) , NewPostRoute ( " " , r . postImagesCreate ) , NewPostRoute ( " " , r . postImagesLoad ) , NewPostRoute ( " " , r . postImagesPush ) , NewPostRoute ( " " , r . postImagesTag ) , NewPostRoute ( " " , r . postContainersCreate ) , NewPostRoute ( " " , r . postContainersKill ) , NewPostRoute ( " " , r . postContainersPause ) , NewPostRoute ( " " , r . postContainersUnpause ) , NewPostRoute ( " " , r . postContainersRestart ) , NewPostRoute ( " " , r . postContainersStart ) , NewPostRoute ( " " , r . postContainersStop ) , NewPostRoute ( " " , r . postContainersWait ) , NewPostRoute ( " " , r . postContainersResize ) , NewPostRoute ( " " , r . postContainersAttach ) , NewPostRoute ( " " , r . postContainersCopy ) , NewPostRoute ( " " , r . postContainerExecCreate ) , NewPostRoute ( " " , r . postContainerExecStart ) , NewPostRoute ( " " , r . postContainerExecResize ) , NewPostRoute ( " " , r . postContainerRename ) , NewPostRoute ( " " , r . postVolumesCreate ) , NewPutRoute ( " " , r . putContainersArchive ) , NewDeleteRoute ( " " , r . deleteContainers ) , NewDeleteRoute ( " " , r . deleteImages ) , NewDeleteRoute ( " " , r . deleteVolumes ) , } }
initRoutes initializes the routes in this router
initRoutes initializes the routes in this router
// HEAD // OPTIONS // GET // POST // PUT // DELETE