This commit is contained in:
Alexis Lahouze 2017-07-20 22:53:22 +02:00
parent 60aa6310bb
commit 5100d0fd0c
1 changed files with 2 additions and 6 deletions

View File

@ -1,20 +1,16 @@
// vim: set tw=80 ts=2 sw=2 sts=2 :
import { Injectable } from '@angular/core';
import { Http, Headers, RequestOptions, Response } from '@angular/http';
import { Observable } from 'rxjs/Rx';
import { Logger } from "@nsalaun/ng-logger";
import { Restangular } from "ngx-restangular";
import { Account } from './account';
@Injectable()
export class AccountService {
private url = '/api/account/';
constructor(
private logger: Logger,
private restangular: Restangular) {}
private restangular: Restangular
) {}
private all() {
return this.restangular.all('account');