feat: add API routes and endpoints

- Add authentication routes for login, logout, and token refresh
- Add user management routes with proper authorization
- Add session management routes for session operations
- Add access control routes for API permissions
- Add test routes for development and debugging
- Include proper route grouping and middleware application
- Implement RESTful API design patterns
This commit is contained in:
Björn Benouarets
2025-09-25 23:24:37 +02:00
parent e76469ad55
commit b4a0a6b611
6 changed files with 112 additions and 0 deletions

15
routes/user.go Normal file
View File

@@ -0,0 +1,15 @@
package routes
import (
"git.secnex.io/secnex/idp-api/controllers"
"git.secnex.io/secnex/idp-api/middlewares"
"github.com/gofiber/fiber/v2"
)
func UserRoutes(app fiber.Router) {
user := app.Group("/user")
user.Use(middlewares.AuthMiddleware())
user.Get("/", controllers.GetUsers)
}