update,
This commit is contained in:
10
tsc1877/task1/project/admin/src/api/checkSession.js
Normal file
10
tsc1877/task1/project/admin/src/api/checkSession.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import axios from 'axios';
|
||||
|
||||
const CheckSession = ({ session }) => {
|
||||
return axios
|
||||
.get(`/api/auth/check_session`, { headers: { session } })
|
||||
.then(res => res['data'])
|
||||
.catch(err => console.error(err));
|
||||
};
|
||||
|
||||
export default CheckSession;
|
Reference in New Issue
Block a user