Small documentation fix to services.
This commit is contained in:
parent
289ff9fc8f
commit
1ce5eb042d
|
@ -14,25 +14,13 @@ angular.module('rookeries.service', ['ngResource'])
|
|||
// Retrieve Task models for the list.
|
||||
.factory('Task', function($resource) {
|
||||
|
||||
// return $resource(rookeriesApiPath + '/tasks/:taskId', {taskId: '@id'}, {
|
||||
// query: {method:'GET', isArray:true},
|
||||
// get: {method:'GET'}
|
||||
// });
|
||||
|
||||
return $resource(rookeriesApiPath + '/tasks/:taskId', {taskId: '@taskId'});
|
||||
})
|
||||
|
||||
// Retrieves the documentation pages.
|
||||
.factory('DocPage', function($resource) {
|
||||
|
||||
return $resource(rookeriesApiPath + '/docs/:page', {page: '@page'}, {
|
||||
get: {method:'GET'}
|
||||
});
|
||||
|
||||
// var factory = {};
|
||||
// factory.get_page = function() {
|
||||
// "use strict";
|
||||
// return $http.get('http://localhost\\:5000/docs/' + $routeParams.page);
|
||||
// }
|
||||
//
|
||||
// return factory;
|
||||
});
|
Loading…
Reference in New Issue