{"size": 2334, "ext": "js", "max_stars_repo_path": "src/scripts/musicloud/controllers/index.js", "max_stars_repo_name": "pldin601/HomeMusic", "max_stars_repo_stars_event_min_datetime": "2018-01-18T23:00:49.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-28T17:50:22.000Z", "max_issues_repo_path": "src/scripts/musicloud/controllers/index.js", "max_issues_repo_name": "pldin601/HomeMusic", "max_issues_repo_issues_event_min_datetime": "2018-01-22T19:16:44.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-30T10:58:39.000Z", "max_forks_repo_path": "src/scripts/musicloud/controllers/index.js", "max_forks_repo_name": "pldin601/HomeMusic", "max_forks_repo_forks_event_min_datetime": "2017-07-17T17:47:31.000Z", "max_forks_repo_forks_event_max_datetime": "2020-07-21T18:44:09.000Z"}
{"max_stars_count": 6, "max_issues_count": 11, "max_forks_count": 3, "avg_line_length": 43.2222222222, "max_line_length": 85, "alphanum_fraction": 0.8020565553}
/*
 * Copyright (c) 2017 Roman Lakhtadyr
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
import ArtistViewController from './ArtistViewController'
import GenreViewController from './GenreViewController'
import AlbumViewController from './AlbumViewController'
import TracksViewController from './TracksViewController'
import AllArtistsViewController from './AllArtistsViewController'
import AllAlbumsViewController from './AllAlbumsViewController'
import AllCompilationsViewController from './AllCompilationsViewController'
import AllGenresViewController from './AllGenresViewController'
import PlaylistsController from './PlaylistsController'
import PlaylistController from './PlaylistController'
import SearchController from './SearchController'
import MetadataController from './MetadataController'
import UploadController from './UploadController'

const controllers = {
  ArtistViewController,
  GenreViewController,
  AlbumViewController,
  TracksViewController,
  AllArtistsViewController,
  AllAlbumsViewController,
  AllCompilationsViewController,
  AllGenresViewController,
  PlaylistsController,
  PlaylistController,
  SearchController,
  MetadataController,
  UploadController,
}

export default (app) =>
  Object.keys(controllers).forEach((name) => app.controller(name, controllers[name]))
