text: import settingsMenu from '@/lib/settings-menu';
  import template from './list.html';
  
  function DataSourcesCtrl($scope, $location, currentUser, DataSource) {
    $scope.dataSources = DataSource.query();
  }
  
  export default function init(ngModule) {
    settingsMenu.add({
      permission: 'admin',
      title: 'Data Sources',
      path: 'data_sources',
      order: 1,
    });
  
    ngModule.controller('DataSourcesCtrl', DataSourcesCtrl);
  
    return {
      '/data_sources': {
        template,
        controller: 'DataSourcesCtrl',
        title: 'Data Sources',
      },
    };
  }
  