Commit 3d286cd9 authored by Mark Harding's avatar Mark Harding

(chore): pass through version of frontend to XHR requests

parent 1458fa3f
No related merge requests found
Pipeline #79820387 failed with stages
in 7 minutes and 40 seconds
import { Cookie } from '../../services/cookie';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { environment } from '../../../environments/environment';
/**
* API Class
......@@ -12,7 +13,7 @@ export class MindsHttpClient {
return new MindsHttpClient(http);
}
constructor(public http: HttpClient) {}
constructor(public http: HttpClient) { }
/**
* Return a GET request
......@@ -68,6 +69,7 @@ export class MindsHttpClient {
const headers = new HttpHeaders({
'X-XSRF-TOKEN': XSRF_TOKEN,
'X-VERSION': environment.version,
});
return Object.assign(options, {
......
import { Cookie } from '../cookie';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { environment } from '../../../environments/environment';
/**
* API Class
......@@ -12,7 +13,7 @@ export class Client {
return new Client(http);
}
constructor(public http: HttpClient) {}
constructor(public http: HttpClient) { }
/**
* Return a GET request
......@@ -175,6 +176,7 @@ export class Client {
const headers = new HttpHeaders({
'X-XSRF-TOKEN': XSRF_TOKEN,
'X-VERSION': environment.version,
});
return Object.assign(options, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment