Commit 40762733 by Bence Dányi

firewall_gui: js rulelistcontroller added

parent 1c71031a
/* Project specific Javascript goes here. */
\ No newline at end of file
angular.module('firewall', []).config(
['$routeProvider', function($routeProvider) {
$routeProvider.when('/rules/', {
templateUrl: '/static/partials/rule-list.html',
controller: RuleListCtrl
}).
otherwise({
redirectTo: '/rules/'
});
}]);
function RuleListCtrl($scope, $http) {
$http.get('/firewall/rules/').success(function success(data) {
$scope.rules = data;
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment