All Downloads are FREE. Search and download functionalities are using the official Maven repository.

restx.log.js.app.js Maven / Gradle / Ivy

The newest version!
angular.module('admin', ['ngResource', 'ngRoute']);

angular.module('admin').config(function($routeProvider, $locationProvider) {
  $routeProvider.
      when('/', {
        controller: 'ViewLogsController',
        templateUrl: 'views/view-logs.html'
      }).
      when('/configure', {
        controller: 'ConfigureLogsController',
        templateUrl: 'views/configure-logs.html'
      });

  // undo the default ('!') to avoid breaking change from angularjs 1.6
  $locationProvider.hashPrefix('');
});

angular.module('admin').factory('Loggers', function($resource) {
    return $resource('../../loggers/:name', {name: '@name'}, {
        update: {method:'PUT'}
    });
});





© 2015 - 2024 Weber Informatics LLC | Privacy Policy