mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-02 15:14:09 +01:00
16 lines
379 B
Go
16 lines
379 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/astaxie/beego"
|
||
|
"github.com/vmware/harbor/controllers/ng"
|
||
|
)
|
||
|
|
||
|
func initNgRouters() {
|
||
|
|
||
|
beego.SetStaticPath("ng/static", "ng")
|
||
|
beego.Router("/ng", &ng.IndexController{})
|
||
|
beego.Router("/ng/dashboard", &ng.DashboardController{})
|
||
|
beego.Router("/ng/project", &ng.ProjectController{})
|
||
|
beego.Router("/ng/repository", &ng.RepositoryController{})
|
||
|
}
|