Browse Source

update detection api

pull/1/head
Jonathan Cobb 5 years ago
parent
commit
39fcb8bde2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/_services/system.service.js

+ 2
- 2
src/_services/system.service.js View File

@@ -33,14 +33,14 @@ function loadTimezones() {

function detectTimezone() {
const requestOptions = userLoggedIn() ? getWithAuth() : { method: 'GET' };
return fetch(`${config.apiUrl}/auth/detect/timezone`, requestOptions)
return fetch(`${config.apiUrl}/detect/timezone`, requestOptions)
.then(handleBasicResponse)
.then(timezone => { return timezone; });
}

function detectLocale () {
const requestOptions = userLoggedIn() ? getWithAuth() : { method: 'GET' };
return fetch(`${config.apiUrl}/auth/detect/locale`, requestOptions)
return fetch(`${config.apiUrl}/detect/locale`, requestOptions)
.then(handleBasicResponse)
.then(locales => { return locales; });
}

Loading…
Cancel
Save