Cleanup.
This commit is contained in:
parent
60aa6310bb
commit
5100d0fd0c
@ -1,20 +1,16 @@
|
|||||||
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Http, Headers, RequestOptions, Response } from '@angular/http';
|
|
||||||
import { Observable } from 'rxjs/Rx';
|
import { Observable } from 'rxjs/Rx';
|
||||||
|
|
||||||
import { Logger } from "@nsalaun/ng-logger";
|
|
||||||
import { Restangular } from "ngx-restangular";
|
import { Restangular } from "ngx-restangular";
|
||||||
|
|
||||||
import { Account } from './account';
|
import { Account } from './account';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AccountService {
|
export class AccountService {
|
||||||
private url = '/api/account/';
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private logger: Logger,
|
private restangular: Restangular
|
||||||
private restangular: Restangular) {}
|
) {}
|
||||||
|
|
||||||
private all() {
|
private all() {
|
||||||
return this.restangular.all('account');
|
return this.restangular.all('account');
|
||||||
|
Loading…
Reference in New Issue
Block a user