Changeset 0c6b92a for imaps-frontend/src/scripts/net/HttpService.js
- Timestamp:
- 12/12/24 17:06:06 (5 weeks ago)
- Branches:
- main
- Parents:
- d565449
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/src/scripts/net/HttpService.js
rd565449 r0c6b92a 3 3 4 4 class HttpService { 5 constructor(URL = config.apiBaseUrl, auth = false) { 6 this.baseURL = URL; 5 constructor(auth = false) { 7 6 this.auth = auth; 8 7 } … … 33 32 } 34 33 35 const response = await fetch(`${ this.baseURL}${endpoint}`, options);34 const response = await fetch(`${endpoint}`, options); 36 35 37 36 if (!response.ok) {
Note:
See TracChangeset
for help on using the changeset viewer.