码农笔录博客源码
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

18 行
860 B

package routers
import (
"beeblog/controllers"
beego "github.com/beego/beego/v2/server/web"
)
func init() {
beego.Router("/api/note/:id([0-9]+)", &controllers.NoteController{}, "get:Get")
beego.Router("/note", &controllers.NoteController{}, "get:Note")
beego.Router("/api/note", &controllers.NoteController{}, "get:NoteApi")
beego.Router("/api/notecoll/save", &controllers.NoteController{}, "post:SaveNoteColl")
beego.Router("/api/notecoll/edit", &controllers.NoteController{}, "post:EditNoteColl")
beego.Router("/api/note/save", &controllers.NoteController{}, "post:Save")
beego.Router("/api/note/edit/:id([0-9]+)", &controllers.NoteController{}, "post:Edit")
beego.Router("/api/note/del/:id([0-9]+)", &controllers.NoteController{}, "post:Delete")
beego.Router("/api/notecol/del/:id([0-9]+)", &controllers.NoteController{}, "post:DelNoteColl")
}