Browse Source

提交代码

2023
ychao_1983 2 years ago
parent
commit
59d2cc6ec7
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      routers/routes/routes.go
  2. +5
    -0
      routers/tech/tech.go

+ 1
- 0
routers/routes/routes.go View File

@@ -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)



+ 5
- 0
routers/tech/tech.go View File

@@ -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)
}

Loading…
Cancel
Save