{"size": 966, "ext": "js", "max_stars_repo_path": "modules/files/client/config/files.client.routes.js", "max_stars_repo_name": "syed-mohsin/CloudBox", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "modules/files/client/config/files.client.routes.js", "max_issues_repo_name": "syed-mohsin/CloudBox", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "modules/files/client/config/files.client.routes.js", "max_forks_repo_name": "syed-mohsin/CloudBox", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.1081081081, "max_line_length": 79, "alphanum_fraction": 0.5279503106}
'use strict';

// Setting up route
angular.module('files').config(['$stateProvider',
  function ($stateProvider) {
    // Files state routing
    $stateProvider
      .state('files', {
        abstract: true,
        url: '/files',
        template: '<ui-view/>'
      })
      .state('files.list', {
        url: '',
        templateUrl: 'modules/files/client/views/list-files.client.view.html'
      })
      .state('files.create', {
        url: '/create',
        templateUrl: 'modules/files/client/views/create-file.client.view.html',
        data: {
          roles: ['user', 'admin']
        }
      })
      .state('files.view', {
        url: '/:fileId',
        templateUrl: 'modules/files/client/views/view-file.client.view.html'
      })
      .state('files.edit', {
        url: '/:fileId/edit',
        templateUrl: 'modules/files/client/views/edit-file.client.view.html',
        data: {
          roles: ['user', 'admin']
        }
      });
  }
]);
