实现文档历史

This commit is contained in:
Minho
2017-05-20 15:27:03 +08:00
parent 79a464352e
commit 056edb71fc
8 changed files with 243 additions and 9 deletions

View File

@@ -57,6 +57,7 @@ func init() {
beego.Router("/api/:key/create",&controllers.DocumentController{},"post:Create")
beego.Router("/api/:key/delete", &controllers.DocumentController{},"post:Delete")
beego.Router("/api/:key/content/?:id",&controllers.DocumentController{},"*:Content")
beego.Router("/api/history", &controllers.DocumentController{},"get:History")
beego.Router("/docs/:key", &controllers.DocumentController{},"*:Index")