Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
881
Issues
881
List
Boards
Labels
Service Desk
Milestones
Merge Requests
50
Merge Requests
50
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
3d286cd9
Commit
3d286cd9
authored
10 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): pass through version of frontend to XHR requests
parent
1458fa3f
master
No related merge requests found
Pipeline
#79820387
failed with stages
in 7 minutes and 40 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
client.service.ts
src/app/common/api/client.service.ts
+3
-1
client.ts
src/app/services/api/client.ts
+3
-1
No files found.
src/app/common/api/client.service.ts
View file @
3d286cd9
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
,
{
...
...
This diff is collapsed.
Click to expand it.
src/app/services/api/client.ts
View file @
3d286cd9
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
,
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment