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.
15 rindas
564 B
15 rindas
564 B
package routers
|
|
|
|
import (
|
|
"github.com/astaxie/beego"
|
|
"beeblog/controllers"
|
|
)
|
|
|
|
func init() {
|
|
beego.Router("/note/:id([0-9]+)", &controllers.NoteController{}, "get:Get")
|
|
beego.Router("/note", &controllers.NoteController{}, "get:Note")
|
|
beego.Router("/notecoll/save", &controllers.NoteController{}, "post:SaveNoteColl")
|
|
beego.Router("/note/save", &controllers.NoteController{}, "post:Save")
|
|
beego.Router("/note/edit/:id([0-9]+)", &controllers.NoteController{}, "post:Edit")
|
|
beego.Router("/note/del/:id([0-9]+)", &controllers.NoteController{}, "post:Delete")
|
|
}
|
|
|