summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-08 18:29:18 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-08 18:29:18 -0400
commit1aa76bd27913e40780aa66fe6b6c1158e20b7bef (patch)
treeafd0979216a6a4a6f3fe72d4f8c391fc5b7ab0fe /cmd
parent54c9844d665cdd554ae8945aae2ee966df5ddfc4 (diff)
downloadgitea-1aa76bd27913e40780aa66fe6b6c1158e20b7bef.tar.gz
gitea-1aa76bd27913e40780aa66fe6b6c1158e20b7bef.zip
Fix #532, add system notice
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 201eb48f0e..9f2ec8b824 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -243,6 +243,11 @@ func runWeb(*cli.Context) {
r.Post("/:authid", bindIgnErr(auth.AuthenticationForm{}), admin.EditAuthSourcePost)
r.Post("/:authid/delete", admin.DeleteAuthSource)
})
+
+ m.Group("/notices", func(r *macaron.Router) {
+ r.Get("", admin.Notices)
+ r.Get("/:id:int/delete", admin.DeleteNotice)
+ })
}, adminReq)
m.Get("/:username", ignSignIn, user.Profile)