Files
auth-service/internal/handler/handler.go

18 lines
266 B
Go

package handler
import "github.com/gin-gonic/gin"
type Handler struct {
}
func (h *Handler) InitRoutes() *gin.Engine {
router := gin.New()
auth := router.Group("/auth")
{
auth.POST("/sign-up", h.signUp)
auth.POST("/sign-in", h.signIn)
}
return router
}