From 104d0ddd96c2dc8fcca1fdf8888008c2362b21c5 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 12 Feb 2020 12:29:48 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20=E9=87=8D=E6=9E=84=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E8=B7=AF=E7=94=B1=20#5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/b3log/symphony/processor/IndexProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/b3log/symphony/processor/IndexProcessor.java b/src/main/java/org/b3log/symphony/processor/IndexProcessor.java index f0447c9f0..b89bdfb92 100644 --- a/src/main/java/org/b3log/symphony/processor/IndexProcessor.java +++ b/src/main/java/org/b3log/symphony/processor/IndexProcessor.java @@ -117,7 +117,7 @@ public static void register() { Dispatcher.get("/CHANGE_LOGS.html", indexProcessor::showChangelogs); Dispatcher.group().middlewares(anonymousViewCheckMidware::handle, permissionMidware::grant).router().get().uris(new String[]{"/qna", "/qna/unanswered", "/qna/reward", "/qna/hot"}).handler(indexProcessor::showQnA); Dispatcher.group().middlewares(loginCheck::handle, permissionMidware::grant).router().get().uris(new String[]{"/watch", "/watch/users"}).handler(indexProcessor::showWatch); - Dispatcher.group().middlewares(permissionMidware::grant).router().get().uris(new String[]{"", "/"}).handler(indexProcessor::showIndex); + Dispatcher.get("/", indexProcessor::showIndex, permissionMidware::grant); Dispatcher.group().middlewares(anonymousViewCheckMidware::handle, permissionMidware::grant).router().get().uris(new String[]{"/recent", "/recent/hot", "/recent/good", "/recent/reply"}).handler(indexProcessor::showRecent); Dispatcher.get("/about", indexProcessor::showAbout, permissionMidware::grant); Dispatcher.get("/kill-browser", indexProcessor::showKillBrowser);