您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
14 行
289 B
14 行
289 B
6 年前
|
package routers
|
||
|
|
||
|
import (
|
||
|
"beeblog/controllers"
|
||
|
"github.com/astaxie/beego"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
beego.Router("/", &controllers.IndexController{})
|
||
|
beego.Router("/login", &controllers.UserController{}, "Get:LoginPage")
|
||
|
beego.Router("/login", &controllers.UserController{}, "post:Login")
|
||
|
|
||
|
}
|