Added the frontend for Client Delivery Read API
This commit is contained in:
@@ -21,7 +21,6 @@ export class ClientServiceComponent implements OnInit {
|
||||
allDeliveryTasks!: DeliveryModel[];
|
||||
|
||||
constructor(private clientDeliveryService: ClientDeliveryService){}
|
||||
|
||||
ngOnInit(): void {
|
||||
// if(this.data.delivery_date === this.today) {
|
||||
// console.log("Date Matched")
|
||||
@@ -30,8 +29,7 @@ export class ClientServiceComponent implements OnInit {
|
||||
// console.log(this.data.delivery_date)
|
||||
// console.log(this.today)
|
||||
// }
|
||||
|
||||
this.clientDeliveryService.allDelivery().subscribe(data => {
|
||||
this.clientDeliveryService.allDelivery().subscribe(data=>{
|
||||
this.allDeliveryTasks = data;
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3,13 +3,15 @@ import { Injectable } from "@angular/core";
|
||||
import { DeliveryModel } from "./client-service.model";
|
||||
import { Observable } from "rxjs";
|
||||
|
||||
Injectable({'providedIn': 'root'})
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
|
||||
export class ClientDeliveryService {
|
||||
|
||||
constructor(private httpClient: HttpClient){}
|
||||
|
||||
allDelivery(): Observable<DeliveryModel[]> {
|
||||
return this.httpClient.get<DeliveryModel[]>("http://localhost:3000/delivery")
|
||||
return this.httpClient.get<DeliveryModel[]>("http://localhost:3000/api/delivery")
|
||||
}
|
||||
}
|
||||
@@ -114,7 +114,7 @@ export const service_links: navLink[] =[
|
||||
export const shift_tasks = [
|
||||
{
|
||||
"name" : "Client Delivery",
|
||||
"url" : "http://118.67.213.117:12180/delivery"
|
||||
"url" : "http://localhost:12180/delivery"
|
||||
},
|
||||
{
|
||||
"name": "Monitoring Screenshots list",
|
||||
|
||||
Reference in New Issue
Block a user