From eca12a6587ebe5f73b0a3a2566638ecf04658e72 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Sun, 22 Aug 2021 17:55:49 +0800 Subject: [PATCH] remove csrf --- http/router.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/http/router.go b/http/router.go index 00af869b..f252862b 100644 --- a/http/router.go +++ b/http/router.go @@ -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) -- GitLab