Инициализация проекта + первые наработки

This commit is contained in:
Ганеев Артём
2025-01-04 10:42:04 +03:00
commit def3552a67
8 changed files with 248 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
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
}