diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 4fb24201b..c5fe938a8 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -903,6 +903,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/tech_view", tech.TechView) m.Get("/repo_view", tech.RepoView) m.Get("/admin_view", tech.AdminView) + m.Get("/my_view", tech.AdminView) }, reqSignIn) diff --git a/routers/tech/tech.go b/routers/tech/tech.go index 1003cd50c..99aaa5d4d 100644 --- a/routers/tech/tech.go +++ b/routers/tech/tech.go @@ -10,6 +10,7 @@ const ( tplTech base.TplName = "tech/tech_view" tplRepo base.TplName = "tech/repo_view" tplAdmin base.TplName = "tech/admin_view" + tplMine base.TplName = "tech/my_view" ) func Create(ctx *context.Context) { @@ -25,3 +26,7 @@ func RepoView(ctx *context.Context) { func AdminView(ctx *context.Context) { ctx.HTML(200, tplAdmin) } + +func MyView(ctx *context.Context) { + ctx.HTML(200, tplMine) +}