mirror of
https://github.com/gophish/gophish
synced 2024-11-16 00:58:03 +00:00
87fbd41184
Starting to implement angularjs Implemented /api/campaigns/:id GET Changed template delims to {{% and %}}
7 lines
No EOL
222 B
JavaScript
7 lines
No EOL
222 B
JavaScript
var gophishApp = angular.module('gophishApp', []);
|
|
|
|
gophishApp.controller('CampaignCtrl', function($scope, $http) {
|
|
$http.get('/api/campaigns?api_key=' + API_KEY).success(function(data) {
|
|
$scope.campaigns = data;
|
|
})
|
|
}) |