1 Star 0 Fork 0

UUGU/pcs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 469 Bytes
一键复制 编辑 原始数据 按行查看 历史
清源 提交于 2018-01-22 21:44 +08:00 . Update Page
package main
import (
"uugu.org/pcs/models"
_ "uugu.org/pcs/routers"
"github.com/astaxie/beego"
"uugu.org/pcs/utils"
)
func init() {
models.Init()
beego.BConfig.WebConfig.Session.SessionOn = true
beego.BConfig.WebConfig.TemplateLeft = "<<<"
beego.BConfig.WebConfig.TemplateRight = ">>>"
}
func main() {
beego.InsertFilter("/exam/*", beego.BeforeRouter, utils.VerifyLogin)
beego.InsertFilter("/logout", beego.BeforeRouter, utils.VerifyLogin)
beego.Run()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/uugu/pcs.git
git@gitee.com:uugu/pcs.git
uugu
pcs
pcs
master

搜索帮助