feat: add data-provider

This commit is contained in:
Daniel D Orlando 2023-04-02 12:48:26 -07:00
parent 21920dd864
commit 2589754171
7 changed files with 578 additions and 0 deletions

View file

@ -0,0 +1,9 @@
import axios from 'axios';
export function setAcceptLanguageHeader(value: string): void {
axios.defaults.headers.common['Accept-Language'] = value;
}
export function setTokenHeader(token: string) {
axios.defaults.headers.common['Authorization'] = 'Bearer ' + token;
}