예제 #1
0
파일: auth.go 프로젝트: harryyeh/switch
func AuthPost(ctx *middleware.Context) {
	ctx.SetCookie("access_token", ctx.Query("token"))
	ctx.Redirect("/admin")
}