function LoginFactory($resource) {
    return $resource(
        '/auth/local/login',
        {},
        {
            login: {
                method: 'POST'
            }
        }
    );
}
/**
 * Login API factory object
 * @param {object} $resource Angular Resource object
 * @returns {object} Returns a base message object
 * @constructor
 */
Login API factory object
@param {object} $resource Angular Resource object
@returns {object} Returns a base message object
@constructor
Login API factory object @param { object } $resource Angular Resource object @returns { object } Returns a base message object @constructor
function LoginFactory($resource) {
    return $resource(
        '/auth/local/login',
        {},
        {
            login: {
                method: 'POST'
            }
        }
    );
}
function LoginFactory ( $resource ) { return $resource ( '/auth/local/login' , { } , { login : { method : 'POST' } } ) ; }
Login API factory object
 @param {object} $resource Angular Resource object
 @returns {object} Returns a base message object
 @constructor
Login API factory object @param { object } $resource Angular Resource object @returns { object } Returns a base message object @constructor