Browse Source

change homepage

tags/v1.21.12.1
avadesian 4 years ago
parent
commit
36e3faed5e
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      routers/routes/routes.go

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

@@ -305,7 +305,12 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Head("/", func() string {
return ""
})
m.Get("/", routers.ExploreRepos)
m.Get("/", routers.Dashboard)
// func() {
// m.Get("", func(ctx *context.Context) {
// ctx.Redirect(setting.AppSubURL + "/dashboard")
// })
// }, ignSignIn
m.Get("/dashboard", routers.Dashboard)
m.Group("/explore", func() {
m.Get("", func(ctx *context.Context) {


Loading…
Cancel
Save