feat: Add user registration endpoint with JWT token generation and update API documentation

This commit is contained in:
2025-03-10 22:44:16 +00:00
parent 9f8eab0fac
commit 460235b832
5 changed files with 256 additions and 0 deletions
+1
View File
@@ -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")