remove csrf

This commit is contained in:
Ulric Qin 2021-08-22 17:55:49 +08:00
parent 5106b73699
commit eca12a6587
1 changed files with 5 additions and 5 deletions

View File

@ -55,11 +55,11 @@ func configRoutes(r *gin.Engine) {
pages := r.Group("/api/n9e") pages := r.Group("/api/n9e")
{ {
/*
pages.GET("/csrf", func(c *gin.Context) { pages.GET("/csrf", func(c *gin.Context) {
renderData(c, csrf.GetToken(c), nil) // renderData(c, csrf.GetToken(c), nil)
}) renderData(c, "not supported", nil)
*/ })
pages.GET("/roles", rolesGet) pages.GET("/roles", rolesGet)
pages.GET("/self/profile", selfProfileGet) pages.GET("/self/profile", selfProfileGet)