Skip to content

Commit

Permalink
[FIX] header
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh031224 committed Sep 6, 2020
1 parent 5387f4e commit 9495d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const getQna = () => {
}

export const getFile = (name) => {
axios.defaults.headers['x-access-token'] = sessionStorage.getItem('adminToken')
return axiosApi(`/auth/file-download?dataName=${name}`, 'GET')
}

Expand All @@ -32,6 +33,5 @@ export const createWebinarInfo = (data) => {
}

export const adminLogin = (data) => {
axios.defaults.headers['x-access-token'] = sessionStorage.getItem('adminToken')
return axiosApi('/auth/admin-login', 'POST', data)
}

0 comments on commit 9495d62

Please sign in to comment.