Restructured project
- backend moved to backend directory - added and initialized frontend with vue - moved infrastructure files to infra directory
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user