goipam/web/ui/routes.go

18 lines
315 B
Go

package ui
import (
"github.com/gin-gonic/gin"
)
func GroupWeb(router *gin.Engine) *gin.Engine {
router.GET("/index.html", index)
router.GET("/", index)
router.POST("/", index)
router.GET("/login.html", getLogin)
router.POST("/login.html", postLogin)
router.GET("/profile/", getProfile)
return router
}