mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
getting token / error
This commit is contained in:
parent
956802d5a5
commit
dc6f72baf1
26 changed files with 269 additions and 374 deletions
|
@ -11,3 +11,6 @@ export const authMiddleware = r => {
|
|||
export const api = axios.create({
|
||||
baseURL: API.BASE,
|
||||
});
|
||||
|
||||
export const resultMiddleware = ({ status, data }) => ({ status, data });
|
||||
export const errorMiddleware = ({ status, data, response }) => ({ status, data: data || { response } });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue