ghostfolio/apps/client/src/app/services/cache.service.ts

14 lines
294 B
TypeScript
Raw Normal View History

2021-04-13 21:53:58 +02:00
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`, {});
}
}