码农笔录博客源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
842 B

6 年之前
package routers
import (
"github.com/astaxie/beego"
"beeblog/controllers"
)
func init() {
6 年之前
beego.Router("/api/note/:id([0-9]+)", &controllers.NoteController{}, "get:Get")
6 年之前
beego.Router("/note", &controllers.NoteController{}, "get:Note")
beego.Router("/api/note", &controllers.NoteController{}, "get:NoteApi")
6 年之前
beego.Router("/api/notecoll/save", &controllers.NoteController{}, "post:SaveNoteColl")
beego.Router("/api/notecoll/edit", &controllers.NoteController{}, "post:EditNoteColl")
6 年之前
beego.Router("/api/note/save", &controllers.NoteController{}, "post:Save")
6 年之前
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")
6 年之前
}