You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
554 B
19 lines
554 B
import { Injectable } from '@angular/core';
|
|
import { HttpClient, HttpHeaders } from "@angular/common/http";
|
|
import { Observable } from "rxjs";
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class ReplaysService {
|
|
server_route: string = "http://172.16.40.146:3000/"
|
|
|
|
constructor(private httpClient: HttpClient) {
|
|
}
|
|
|
|
uploadReplay(newReplay: FormData) {
|
|
const headers = new HttpHeaders();
|
|
headers.append('Content-Type', 'multipart/form-data');
|
|
return this.httpClient.post(this.server_route+'upload/replay', newReplay, { headers });
|
|
}
|
|
}
|
|
|