码农笔录博客源码
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

19 rindas
842 B

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