mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 18:03:54 +00:00
20 lines
460 B
JavaScript
20 lines
460 B
JavaScript
import template from './list.html';
|
|
|
|
function DestinationsCtrl($scope, $location, toastr, currentUser, Events, Destination) {
|
|
Events.record('view', 'page', 'admin/destinations');
|
|
|
|
$scope.destinations = Destination.query();
|
|
}
|
|
|
|
export default function (ngModule) {
|
|
ngModule.controller('DestinationsCtrl', DestinationsCtrl);
|
|
|
|
return {
|
|
'/destinations': {
|
|
template,
|
|
controller: 'DestinationsCtrl',
|
|
title: 'Destinations',
|
|
},
|
|
};
|
|
}
|