From ac31409e2d65976394902327b26ba36c97422fb2 Mon Sep 17 00:00:00 2001 From: "768068275@qq.com" <768068275@qq.com> Date: Wed, 15 Nov 2017 10:48:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/http/http.go | 30 +++++++++++++++--------------- src/template | 1 + 2 files changed, 16 insertions(+), 15 deletions(-) create mode 120000 src/template diff --git a/src/http/http.go b/src/http/http.go index f50e308d..e482724d 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -181,21 +181,21 @@ const ( // 是否访问这些页面 var filterPathes = map[string]struct{}{ - "/account/login": struct{}{}, - "/account/register": struct{}{}, - "/account/forgetpwd": struct{}{}, - "/account/resetpwd": struct{}{}, - "/topics/new": struct{}{}, - "/topics/modify": struct{}{}, - "/resources/new": struct{}{}, - "/resources/modify": struct{}{}, - "/articles/new": struct{}{}, - "/articles/modify": struct{}{}, - "/project/new": struct{}{}, - "/project/modify": struct{}{}, - "/book/new": struct{}{}, - "/wiki/new": struct{}{}, - "/wiki/modify": struct{}{}, + "/account/login": {}, + "/account/register": {}, + "/account/forgetpwd": {}, + "/account/resetpwd": {}, + "/topics/new": {}, + "/topics/modify": {}, + "/resources/new": {}, + "/resources/modify": {}, + "/articles/new": {}, + "/articles/modify": {}, + "/project/new": {}, + "/project/modify": {}, + "/book/new": {}, + "/wiki/new": {}, + "/wiki/modify": {}, } // Render html 输出 diff --git a/src/template b/src/template new file mode 120000 index 00000000..adb091cf --- /dev/null +++ b/src/template @@ -0,0 +1 @@ +../template \ No newline at end of file