From 59d2cc6ec79926f44b843eeece5b33687f32f77d Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Wed, 1 Feb 2023 10:21:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/routes/routes.go | 1 + routers/tech/tech.go | 5 +++++ 2 files changed, 6 insertions(+) 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) +}