From c84c911d4d7f726a8346b9d2e7427c549f8e66d5 Mon Sep 17 00:00:00 2001 From: cuigh Date: Tue, 26 Dec 2017 18:59:51 +0800 Subject: [PATCH] Rename handlers --- controller/home.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/home.go b/controller/home.go index 6d2af19..334de2a 100644 --- a/controller/home.go +++ b/controller/home.go @@ -11,9 +11,9 @@ import ( // HomeController is a basic controller of site type HomeController struct { Index web.HandlerFunc `path:"/" name:"index" authorize:"?" desc:"index page"` - Login web.HandlerFunc `path:"/login" name:"login" authorize:"*" desc:"sign in page"` - InitGet web.HandlerFunc `path:"/init" name:"init" authorize:"*" desc:"initialize page"` - InitPost web.HandlerFunc `path:"/init" method:"post" name:"init" authorize:"*" desc:"initialize system"` + Login web.HandlerFunc `path:"/login" name:"login.view" authorize:"*" desc:"sign in page"` + InitGet web.HandlerFunc `path:"/init" name:"init.view" authorize:"*" desc:"initialize page"` + InitPost web.HandlerFunc `path:"/init" name:"init" method:"post" authorize:"*" desc:"initialize system"` Error403 web.HandlerFunc `path:"/403" name:"403" authorize:"?" desc:"403 page"` Error404 web.HandlerFunc `path:"/404" name:"404" authorize:"*" desc:"404 page"` }