package router

func registerSearchRoutes(cfg *Config) {
	e := cfg.Echo

	// JWT middleware for protected routes
	jwtMiddleware := createJWTMiddleware(cfg)
	protected := e.Group("/api", jwtMiddleware)

	// Search and query endpoints (all authenticated users)
	protected.GET("/media-items/search", cfg.MediaHandler.SearchMediaItems)
	protected.POST("/sync/books/query", cfg.MatchingHandler.QueryBooks)
}
