package router

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

func RegisterPublic(group *gin.RouterGroup, engine *gin.Engine, handler *Public) {
	base := group.Group("/base")
	base.POST("/captcha", handler.Captcha)
	base.POST("/login", handler.Login)
	init := group.Group("/init")
	init.POST("/checkdb", handler.CheckDatabase)
	init.POST("/initdb", handler.InitializeDatabase(engine))
}
