Unify TasksV1 and TasksV2 implementations (#1358)
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import {Injectable, inject} from '@angular/core';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {Observable} from 'rxjs';
|
||||
import {API_CONFIG} from '../../core/config/api-config';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class TaskService {
|
||||
private http = inject(HttpClient);
|
||||
|
||||
private readonly url = `${API_CONFIG.BASE_URL}/api/v1/tasks`;
|
||||
|
||||
cancelTask(taskId: string): Observable<{ message: string }> {
|
||||
return this.http.delete<{ message: string }>(`${this.url}/${taskId}`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user