feat: Add user registration endpoint with JWT token generation and update API documentation
This commit is contained in:
@@ -18,6 +18,7 @@ func SetupRouter(r *gin.Engine) {
|
||||
|
||||
// Public routes
|
||||
r.POST("/auth/login", userHandler.Login)
|
||||
r.POST("/auth/register", userHandler.Register)
|
||||
|
||||
// API routes (protected)
|
||||
api := r.Group("/api")
|
||||
|
||||
Reference in New Issue
Block a user