2016-04-25 08:31:05 +02:00
|
|
|
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{})
|
2016-05-09 12:53:40 +02:00
|
|
|
beego.Router("/ng/sign_up", &ng.SignUpController{})
|
|
|
|
beego.Router("/ng/account_setting", &ng.AccountSettingController{})
|
2016-05-12 12:30:01 +02:00
|
|
|
beego.Router("/ng/admin_option", &ng.AdminOptionController{})
|
2016-05-10 12:43:52 +02:00
|
|
|
beego.Router("/ng/forgot_password", &ng.ForgotPasswordController{})
|
|
|
|
beego.Router("/ng/reset_password", &ng.ResetPasswordController{})
|
2016-05-19 06:50:32 +02:00
|
|
|
beego.Router("/ng/search", &ng.SearchController{})
|
2016-05-12 12:30:01 +02:00
|
|
|
beego.Router("/ng/log_out", &ng.CommonController{}, "get:LogOut")
|
2016-05-10 12:43:52 +02:00
|
|
|
beego.Router("/ng/reset", &ng.CommonController{}, "post:ResetPassword")
|
|
|
|
beego.Router("/ng/sendEmail", &ng.CommonController{}, "get:SendEmail")
|
2016-05-21 05:26:19 +02:00
|
|
|
|
|
|
|
beego.Router("/ng/optional_menu", &ng.OptionalMenuController{})
|
|
|
|
beego.Router("/ng/navigation_header", &ng.NavigationHeaderController{})
|
2016-04-25 08:31:05 +02:00
|
|
|
}
|