ghostfolio/apps/client/src/app/services/cache.service.ts
2021-04-13 21:53:58 +02:00

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`, {});
}
}