mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 03:30:51 +01:00
14 lines
353 B
Go
14 lines
353 B
Go
package main
|
|
|
|
import (
|
|
api "github.com/vmware/harbor/api/jobs"
|
|
|
|
"github.com/astaxie/beego"
|
|
)
|
|
|
|
func initRouters() {
|
|
beego.Router("/api/replicationJobs", &api.ReplicationJob{})
|
|
beego.Router("/api/replicationJobs/:id/log", &api.ReplicationJob{}, "get:GetLog")
|
|
beego.Router("/api/replicationJobs/actions", &api.ReplicationJob{}, "post:HandleAction")
|
|
}
|