Skip to content

Instantly share code, notes, and snippets.

@simonmorley
Last active August 29, 2015 14:13
Show Gist options
  • Save simonmorley/a234a514dcc3bedcd88e to your computer and use it in GitHub Desktop.
Save simonmorley/a234a514dcc3bedcd88e to your computer and use it in GitHub Desktop.
'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