parent
3a8c52ae76
commit
b78d4dc5a4
@ -0,0 +1,18 @@ |
|||||||
|
import { Injectable } from '@angular/core'; |
||||||
|
import { environment } from '../../environments/environment.development'; |
||||||
|
import { HttpClient, HttpParams } from '@angular/common/http'; |
||||||
|
import { Observable } from 'rxjs'; |
||||||
|
|
||||||
|
@Injectable({ |
||||||
|
providedIn: 'root' |
||||||
|
}) |
||||||
|
export class ResetDataService { |
||||||
|
private apiServerUrl = environment.apiBaseUrl; |
||||||
|
|
||||||
|
constructor(private http: HttpClient) { } |
||||||
|
|
||||||
|
public resetDatabase(){ |
||||||
|
return this.http.post<void>(`${this.apiServerUrl}/api/reset`, null); |
||||||
|
} |
||||||
|
|
||||||
|
} |
Loading…
Reference in new issue