diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-10-08 18:29:18 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-10-08 18:29:18 -0400 |
commit | 1aa76bd27913e40780aa66fe6b6c1158e20b7bef (patch) | |
tree | afd0979216a6a4a6f3fe72d4f8c391fc5b7ab0fe /cmd | |
parent | 54c9844d665cdd554ae8945aae2ee966df5ddfc4 (diff) |
Fix #532, add system notice
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |