您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
15 行
564 B
15 行
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")
|
|
}
|
|
|