码农笔录博客源码
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.

18 rindas
718 B

package routers
import (
"beeblog/controllers"
pirms 6 gadiem
"github.com/astaxie/beego"
)
func init() {
pirms 6 gadiem
beego.Router("/api/blog/new", &controllers.BlogController{}, "post:Save")
beego.Router("/api/blog/edit", &controllers.BlogController{}, "post:Edit")
beego.Router("/api/blog/del/:id([0-9]+)", &controllers.BlogController{}, "post:Del")
pirms 6 gadiem
beego.Router("/blog/edit/:id([0-9]+)", &controllers.BlogController{}, "get:EditPage")
beego.Router("/blog/:id([0-9]+)", &controllers.BlogController{}, "get:Get")
pirms 6 gadiem
beego.Router("/blogs", &controllers.BlogController{}, "get:BlogsPage")
pirms 6 gadiem
beego.Router("/blog/new", &controllers.BlogController{}, "get:New")
pirms 6 gadiem
beego.Router("/open/blog/search", &controllers.BlogController{}, "get:Search")
}