func New()

in internal/api/router/router.go [10:20]


func New(db *repo.Database) *http.ServeMux {
	mux := http.NewServeMux()

	exploreRepo := repo.NewExploreRepository(db)
	exploreHandler := handler.NewExploreHandler(exploreRepo)

	mux.HandleFunc("GET /explore/{path...}", exploreHandler.HandleExplore)
	mux.HandleFunc("GET /summary/{path...}", exploreHandler.HandleSummary)

	return mux
}