aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/web.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-07-12 00:55:19 -0400
committerUnknown <joe2010xtmf@163.com>2014-07-12 00:55:19 -0400
commit0f907301b7fbd05faf07bc22b3316ae1093c6724 (patch)
tree806e40ea6ef651e28563d09526377ed736528c10 /cmd/web.go
parent63cc14062a891a99a429f2eef0ee90a3f5795f47 (diff)
downloadgitea-0f907301b7fbd05faf07bc22b3316ae1093c6724.tar.gz
gitea-0f907301b7fbd05faf07bc22b3316ae1093c6724.zip
Fix #285
Diffstat (limited to 'cmd/web.go')
-rw-r--r--cmd/web.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 5f9c168d88..bb46536542 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -103,7 +103,10 @@ func runWeb(*cli.Context) {
r.Post("/markdown/raw", v1.MarkdownRaw)
// Users.
- r.Get("/users/search", v1.SearchUser)
+ r.Get("/users/search", v1.SearchUsers)
+
+ // Repositories.
+ r.Get("/orgs/:org/repos/search", v1.SearchOrgRepositoreis)
r.Any("**", func(ctx *middleware.Context) {
ctx.JSON(404, &base.ApiJsonErr{"Not Found", v1.DOC_URL})
@@ -182,6 +185,8 @@ func runWeb(*cli.Context) {
r.Get("/:authid/delete", admin.DeleteAuthSource)
}, adminReq)
+ m.Get("/:username", ignSignIn, user.Profile)
+
if martini.Env == martini.Dev {
m.Get("/template/**", dev.TemplatePreview)
dev.RegisterDebugRoutes(m)