You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1007 B
27 lines
1007 B
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/taoshihan1991/imaptool/middleware"
|
|
"github.com/taoshihan1991/imaptool/tmpl"
|
|
)
|
|
|
|
func InitViewRouter(engine *gin.Engine){
|
|
engine.GET("/index", tmpl.PageIndex)
|
|
engine.GET("/login", tmpl.PageLogin)
|
|
engine.GET("/chat_page",middleware.SetLanguage, tmpl.PageChat)
|
|
engine.GET("/chatIndex",middleware.SetLanguage, tmpl.PageChat)
|
|
engine.GET("/main",middleware.JwtPageMiddleware,tmpl.PageMain)
|
|
engine.GET("/chat_main",middleware.JwtPageMiddleware,tmpl.PageChatMain)
|
|
engine.GET("/setting", tmpl.PageSetting)
|
|
engine.GET("/setting_mysql", tmpl.PageSettingMysql)
|
|
engine.GET("/setting_welcome", tmpl.PageSettingWelcome)
|
|
engine.GET("/setting_deploy", tmpl.PageSettingDeploy)
|
|
engine.GET("/setting_kefu_list",tmpl.PageKefuList)
|
|
engine.GET("/setting_ipblack",tmpl.PageIpblack)
|
|
engine.GET("/mail_list", tmpl.PageMailList)
|
|
engine.GET("/roles_list", tmpl.PageRoleList)
|
|
engine.GET("/webjs", tmpl.PageWebJs)
|
|
engine.GET("/webcss", tmpl.PageWebCss)
|
|
}
|