您最多能選擇 25 個主題
主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
18 行
842 B
18 行
842 B
package routers
|
|
|
|
import (
|
|
"github.com/astaxie/beego"
|
|
"beeblog/controllers"
|
|
)
|
|
|
|
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")
|
|
}
|
|
|