mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
14 lines
356 B
Go
14 lines
356 B
Go
package main
|
|
|
|
import (
|
|
api "github.com/vmware/harbor/api/jobs"
|
|
|
|
"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")
|
|
}
|