ghostfolio/apps/client/src/app/services/cache.service.ts
Thomas Kaul 6762572658
Feature/setup api versioning (#783)
* Setup API versioning

* Update changelog
2022-04-02 08:46:24 +02:00

14 lines
297 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/v1/cache/flush`, {});
}
}