Small documentation fix to services.

This commit is contained in:
Dorian 2013-07-10 00:23:32 -04:00
parent 289ff9fc8f
commit 1ce5eb042d
1 changed files with 1 additions and 13 deletions

View File

@ -14,25 +14,13 @@ angular.module('rookeries.service', ['ngResource'])
// Retrieve Task models for the list. // Retrieve Task models for the list.
.factory('Task', function($resource) { .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'}); return $resource(rookeriesApiPath + '/tasks/:taskId', {taskId: '@taskId'});
}) })
// Retrieves the documentation pages.
.factory('DocPage', function($resource) { .factory('DocPage', function($resource) {
return $resource(rookeriesApiPath + '/docs/:page', {page: '@page'}, { return $resource(rookeriesApiPath + '/docs/:page', {page: '@page'}, {
get: {method:'GET'} get: {method:'GET'}
}); });
// var factory = {};
// factory.get_page = function() {
// "use strict";
// return $http.get('http://localhost\\:5000/docs/' + $routeParams.page);
// }
//
// return factory;
}); });