package router

import (
	"bookhoard/internal/handlers"

	"github.com/labstack/echo/v5"
)

// registerScannerRoutes registers all scanner-related endpoints
func registerScannerRoutes(admin *echo.Group, h *handlers.Handler) {
	// Scanner routes (admin only)
	admin.POST("/scanner/scan", h.ScanLibrary)
	admin.POST("/scanner/start", h.StartScanner)
	admin.POST("/scanner/stop", h.StopScanner)
	admin.GET("/scanner/status/:jobId", h.GetScanStatus)

	// Watch mode routes (admin only)
	admin.POST("/scanner/watch/start", h.StartWatchMode)
	admin.POST("/scanner/watch/stop", h.StopWatchMode)
	admin.GET("/scanner/watch/status", h.GetWatchModeStatus)
}
