提交 eca12a65 编写于 作者: U Ulric Qin

remove csrf

上级 5106b736
......@@ -55,11 +55,11 @@ func configRoutes(r *gin.Engine) {
pages := r.Group("/api/n9e")
{
/*
pages.GET("/csrf", func(c *gin.Context) {
renderData(c, csrf.GetToken(c), nil)
})
*/
pages.GET("/csrf", func(c *gin.Context) {
// renderData(c, csrf.GetToken(c), nil)
renderData(c, "not supported", nil)
})
pages.GET("/roles", rolesGet)
pages.GET("/self/profile", selfProfileGet)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册