package router

import (
	"bookhoard/internal/handlers"
)

func registerProgressRoutes(cfg *Config, scannerHandler *handlers.Handler) {
	e := cfg.Echo

	jwtMiddleware := createJWTMiddleware(cfg)
	protected := e.Group("/api", jwtMiddleware)

	protected.GET("/progress/:id/history", scannerHandler.GetProgressHistory)
}
