From 3e9696d2f1130df1d6c3ac655dd8ee189e7383e1 Mon Sep 17 00:00:00 2001 From: Chance Zibolski Date: Mon, 21 Jul 2014 21:21:26 -0700 Subject: [PATCH] Allow /:username for profile Fixes #276 --- cmd/web.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/web.go b/cmd/web.go index d3ce68d37..c7d3afdf5 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -35,7 +35,7 @@ import ( var CmdWeb = cli.Command{ Name: "web", Usage: "Start Gogs web server", - Description: `Gogs web server is the only thing you need to run, + Description: `Gogs web server is the only thing you need to run, and it takes care of all the other things for you`, Action: runWeb, Flags: []cli.Flag{}, @@ -151,6 +151,7 @@ func runWeb(*cli.Context) { }, reqSignIn) m.Get("/user/:username", ignSignIn, user.Profile) + m.Get("/:username", ignSignIn, user.Profile) m.Group("/repo", func(r martini.Router) { r.Get("/create", repo.Create)