fix: update frontend api.js to use JSON body for login (not query params)
This commit is contained in:
parent
273e50886e
commit
d73a28011e
|
|
@ -27,9 +27,9 @@ api.interceptors.response.use(
|
|||
|
||||
// Auth
|
||||
export const auth = {
|
||||
login: (email, password) => api.post('/auth/login', null, { params: { email, password } }),
|
||||
login: (email, password) => api.post('/auth/login', { email, password }),
|
||||
register: (data) => api.post('/auth/register', data),
|
||||
refresh: (token) => api.post('/auth/refresh', null, { params: { refresh_token: token } })
|
||||
refresh: (token) => api.post('/auth/refresh', { refresh_token: token })
|
||||
};
|
||||
|
||||
// Users
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>JIRA AI Fixer</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
<script type="module" crossorigin src="/assets/index-CbBXJad5.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-8UkLrHEv.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BXtUC8s7.css">
|
||||
</head>
|
||||
<body class="bg-gray-900 text-white">
|
||||
|
|
|
|||
Loading…
Reference in New Issue