Last active
August 29, 2015 14:13
-
-
Save simonmorley/a234a514dcc3bedcd88e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var app = angular.module('ctLoginsApp.logins.services', ['ngResource']); | |
app.factory('Login', ['$resource', 'API_END_POINT', | |
function($resource, API_END_POINT){ | |
return $resource(API_END_POINT + '/logins', | |
{}, | |
{ | |
initialise: { | |
cache: true, | |
method: 'GET', | |
isArray: false, | |
params: { | |
v: 2 | |
} | |
} | |
}); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment