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

22 rindas
867 B

pirms 6 gadiem
package routers
import (
"beeblog/controllers"
pirms 4 gadiem
beego "github.com/beego/beego/v2/server/web"
pirms 6 gadiem
)
func init() {
beego.Router("/login", &controllers.UserController{}, "get:LoginPage")
pirms 6 gadiem
beego.Router("/logout", &controllers.UserController{}, "get:Logout")
pirms 6 gadiem
beego.Router("/regist", &controllers.UserController{}, "get:RegistPage")
pirms 6 gadiem
beego.Router("/u/:id([0-9]+)", &controllers.UserController{}, "get:UserInfo")
pirms 6 gadiem
beego.Router("/api/authc/captcha", &controllers.UserController{}, "get:Captcha")
pirms 6 gadiem
beego.Router("/api/user/edit", &controllers.UserController{}, "post:Edit")
beego.Router("/api/login", &controllers.UserController{}, "post:Login")
beego.Router("/api/regist", &controllers.UserController{}, "post:Regist")
pirms 6 gadiem
beego.Router("/me/blog", &controllers.UserController{}, "get:PersonBlog")
pirms 6 gadiem
beego.Router("/me/info", &controllers.UserController{}, "get:PersonInfo")
pirms 6 gadiem
}