package router

import (
	"boostai-backend/internal/config"
	"boostai-backend/internal/database"
	"boostai-backend/internal/handlers/api"
	authmw "boostai-backend/internal/middleware"

	"github.com/gofiber/fiber/v2"
)

func registerAPIRoutes(app *fiber.App, cfg *config.Config, db *database.DB, authMiddleware *authmw.AuthMiddleware) {
	apiHandler := api.NewHandler(db, cfg)
	apiGroup := app.Group("", authMiddleware.RequireAuth())
	apiHandler.Register(apiGroup, authMiddleware)
}
