import { Injectable } from '@angular/core'; import { of,tap } from 'rxjs'; import { AppService } from '../app'; import { ChatMsg } from '../../models'; @Injectable({providedIn:'root'}) export class ChatMessagesService { ext = "/msgs"; constructor(private app:AppService){} fetch(){return this.app.http.get("/");} fetchOne(id:string){return this.app.http.get("/"+id);} send(o:ChatMsg){return this.app.http.post("/",o);} }