14 lines
294 B
TypeScript
14 lines
294 B
TypeScript
|
import { HttpClient } from '@angular/common/http';
|
||
|
import { Injectable } from '@angular/core';
|
||
|
|
||
|
@Injectable({
|
||
|
providedIn: 'root'
|
||
|
})
|
||
|
export class CacheService {
|
||
|
public constructor(private http: HttpClient) {}
|
||
|
|
||
|
public flush() {
|
||
|
return this.http.post<any>(`/api/cache/flush`, {});
|
||
|
}
|
||
|
}
|