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:
15
routes/access.go
Normal file
15
routes/access.go
Normal 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 AccessRoutes(app fiber.Router) {
|
||||
access := app.Group("/access")
|
||||
|
||||
access.Use(middlewares.BasicAuthMiddleware())
|
||||
|
||||
access.Get("/", controllers.CreateApiKey)
|
||||
}
|
Reference in New Issue
Block a user