You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
383 B
TypeScript
17 lines
383 B
TypeScript
import {Injectable} from '@angular/core';
|
|
import {HttpHeaders} from '@angular/common/http';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export abstract class BaseService {
|
|
protected headers: HttpHeaders;
|
|
|
|
protected constructor() {
|
|
this.headers = new HttpHeaders();
|
|
this.headers.set('Content-Type', 'application/json');
|
|
}
|
|
|
|
abstract buildRequestBody(...params: any): any;
|
|
}
|