harbor/jobservice/router.go

14 lines
356 B
Go
Raw Normal View History

2016-04-20 08:24:17 +02:00
package main
import (
api "github.com/vmware/harbor/api/jobs"
2016-04-20 08:24:17 +02:00
"github.com/astaxie/beego"
)
func initRouters() {
beego.Router("/api/jobs/replication", &api.ReplicationJob{})
beego.Router("/api/jobs/replication/:id/log", &api.ReplicationJob{}, "get:GetLog")
beego.Router("/api/jobs/replication/actions", &api.ReplicationJob{}, "post:HandleAction")
2016-04-20 08:24:17 +02:00
}