Commit 44a42c9a by Thomas Bosch

services

parent e0519d7c
......@@ -5,16 +5,14 @@ angular.module('registry.services', ['ngResource'])
function($resource){
return $resource(
'/api/applications', {}, {
query: {method:'GET', isArray:true},
create: { method: 'POST' }
query: { method:'GET', isArray:true }
});
}])
.factory('ApplicationInfo', ['$resource',
function($resource){
return $resource(
':url',
{url:'@url'}, {
query: { method: 'GET' },
update: {method: 'PUT', params: {id: '@id'} },
decodeURIComponent(':url'),
{}, {
query: { method: 'GET' } ,
});
}]);
\ No newline at end of file
......@@ -18,7 +18,7 @@
<td></td>
<td></td>
<td></td>
<td><button type="button" ng-click="editService(service.id)" class="btn btn-success">Edit</button></td>
<td><!-- <button type="button" ng-click="editService(service.id)" class="btn btn-success">Edit</button> --></td>
</tr>
</tbody>
</table>
......
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 to comment