package router

import (
	"ai-css/middleware"
	"ai-css/tmpl"

	"github.com/gin-gonic/gin"
)

func InitViewRouter(engine *gin.RouterGroup) {
	engine.GET("/", tmpl.PageIndex)

	engine.GET("/login", tmpl.PageLogin)
	engine.GET("/pannel", tmpl.PagePannel)
	engine.GET("/chatIndex", tmpl.PageChat)
	engine.GET("/livechat", tmpl.PageChat)
	engine.GET("/main", middleware.JwtPageMiddleware, tmpl.PageMain)
	engine.GET("/chat_main", middleware.JwtPageMiddleware, middleware.DomainLimitMiddleware, tmpl.PageChatMain)
	engine.GET("/setting", middleware.DomainLimitMiddleware, tmpl.PageSetting)
	engine.GET("/setting_statistics", tmpl.PageSettingStatis)
	engine.GET("/setting_indexpage", tmpl.PageSettingIndexPage)
	engine.GET("/setting_indexpages", tmpl.PageSettingIndexPages)
	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_avator", tmpl.PageAvator)
	engine.GET("/setting_modifypass", tmpl.PageModifypass)
	engine.GET("/setting_ipblack", tmpl.PageIpblack)
	engine.GET("/setting_config", tmpl.PageConfig)
	engine.GET("/mail_list", tmpl.PageMailList)
	engine.GET("/roles_list", tmpl.PageRoleList)
}
