9d845c8899
- backend moved to backend directory - added and initialized frontend with vue - moved infrastructure files to infra directory
27 lines
417 B
Go
27 lines
417 B
Go
package routers
|
|
|
|
import (
|
|
"FamilyHub/src/api/services"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type AuthRouter struct {
|
|
service services.AuthService
|
|
}
|
|
|
|
func NewAuthRouter(s services.AuthService) *AuthRouter {
|
|
return &AuthRouter{service: s}
|
|
}
|
|
|
|
func (router *AuthRouter) RegisterRouter(r *gin.RouterGroup) {
|
|
auth := r.Group("/auth")
|
|
{
|
|
auth.POST("", router.Auth)
|
|
}
|
|
}
|
|
|
|
func (router *AuthRouter) Auth(c *gin.Context) {
|
|
|
|
}
|