From 36e3faed5ef6786b87f9456cce5f2f3274640333 Mon Sep 17 00:00:00 2001 From: avadesian Date: Wed, 28 Jul 2021 09:41:52 +0800 Subject: [PATCH] change homepage --- routers/routes/routes.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 4f1f6f314..37ebdd8d5 100755 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -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) {