Skip to content

Commit

Permalink
♻️ 重构请求路由 #5
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Feb 12, 2020
1 parent ddae439 commit 104d0dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 104d0dd

Please sign in to comment.