Compare commits

..

No commits in common. "3a80a6f7f354cfb90b19c55939470dc126ba5c15" and "1610391d56e7ec09c6ad2e9601b28a7ceb7f46d9" have entirely different histories.

View File

@ -2,7 +2,6 @@ import { HttpClient, HttpParams } from "@angular/common/http";
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { IItem } from '../models/item'; import { IItem } from '../models/item';
import { IItemTask } from '../models/itemTask';
import { IUser } from '../models/user'; import { IUser } from '../models/user';
import { AppConfig } from "../shared/app.config"; import { AppConfig } from "../shared/app.config";
import { ItemTypeService } from './itemtype.service'; import { ItemTypeService } from './itemtype.service';
@ -48,8 +47,4 @@ export class AdminService {
getAllUsers(): Observable<IUser[]> { getAllUsers(): Observable<IUser[]> {
return this.httpClient.get<IUser[]>(`${this.ApiEndpoint()}/api/v1/admin/users`); return this.httpClient.get<IUser[]>(`${this.ApiEndpoint()}/api/v1/admin/users`);
} }
postItemTask(item: IItem, task: IItemTask): Observable<IItemTask> {
return this.httpClient.post<IItemTask>(`${this.ApiEndpoint()}/api/v1/admin/${item.code}/tasks`, task);
}
} }