zoneminder/web/skins/bootstrap/js/app.js

16 lines
355 B
JavaScript
Raw Normal View History

2014-11-16 03:34:00 +08:00
var ZoneMinder = angular.module('ZoneMinder', [
'ZoneMinderControllers'
]);
2014-11-16 07:50:04 +08:00
ZoneMinder.config(['$locationProvider', function($locationProvider){
$locationProvider.html5Mode(true);
}]);
2014-11-16 03:34:00 +08:00
ZoneMinder.factory('Header', function($http) {
return {
getLogState: function(callback) {
$http.get('/api/monitors.json').success(callback);
}
};
});