import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { api } from '../../../config'; const backuri = api.ADMIN_URL_BACK; @Injectable({ providedIn: 'root' }) export class FooterService { constructor( private http: HttpClient ) { } getSocialByName(name: string) { return this.http.get(`${backuri}/socialbyname/${name}`); } updateUrlSocial(socialId: string, url: string) { return this.http.post(`${backuri}/updateurlsocial`, {socialId, url}); } updateCheckedSocial(socialId: string, checked: string) { return this.http.post(`${backuri}/updatecheckedsocial`, {socialId, checked}); } }