|
@ -6,12 +6,12 @@ import ( |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
func init() { |
|
|
func init() { |
|
|
beego.Router("/note/:id([0-9]+)", &controllers.NoteController{}, "get:Get") |
|
|
beego.Router("/api/note/:id([0-9]+)", &controllers.NoteController{}, "get:Get") |
|
|
beego.Router("/note", &controllers.NoteController{}, "get:Note") |
|
|
beego.Router("/note", &controllers.NoteController{}, "get:Note") |
|
|
beego.Router("/notecoll/save", &controllers.NoteController{}, "post:SaveNoteColl") |
|
|
beego.Router("/api/notecoll/save", &controllers.NoteController{}, "post:SaveNoteColl") |
|
|
beego.Router("/notecoll/edit", &controllers.NoteController{}, "post:EditNoteColl") |
|
|
beego.Router("/api/notecoll/edit", &controllers.NoteController{}, "post:EditNoteColl") |
|
|
beego.Router("/note/save", &controllers.NoteController{}, "post:Save") |
|
|
beego.Router("/api/api/note/save", &controllers.NoteController{}, "post:Save") |
|
|
beego.Router("/note/edit/:id([0-9]+)", &controllers.NoteController{}, "post:Edit") |
|
|
beego.Router("/api/note/edit/:id([0-9]+)", &controllers.NoteController{}, "post:Edit") |
|
|
beego.Router("/note/del/:id([0-9]+)", &controllers.NoteController{}, "post:Delete") |
|
|
beego.Router("/api/note/del/:id([0-9]+)", &controllers.NoteController{}, "post:Delete") |
|
|
beego.Router("/notecol/del/:id([0-9]+)", &controllers.NoteController{}, "post:DelNoteColl") |
|
|
beego.Router("/api/notecol/del/:id([0-9]+)", &controllers.NoteController{}, "post:DelNoteColl") |
|
|
} |
|
|
} |
|
|