Skip to content

Commit d5c3f71

Browse files
committed
refactor: nive resetPassword api route to auth
1 parent 45b5475 commit d5c3f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export const authApi = {
134134
authenticate: () => $http('/api/authenticate'),
135135
confirmRegistration: data => $http('/api/confirm', { method: 'POST', data }, true),
136136
inviteRegistration: data => $http('/api/join', { method: 'POST', data }, true),
137+
resetPassword: data => $http(`/api/reset`, { method: 'POST', data }, true),
137138
emailAvailable: email => $http(`/api/register/email/${email}`),
138139
usernameAvailable: username => $http(`/api/register/username/${username}`),
139140
inviteExists: email => $http(`/api/invites/exists?email=${email}`),
@@ -158,7 +159,6 @@ export const usersApi = {
158159
ignore: user => $http(`/api/ignoreUsers/ignore/${user.id}`, { method: 'POST' }),
159160
unignore: user => $http(`/api/ignoreUsers/unignore/${user.id}`, { method: 'POST' }),
160161
adminRecover: data => $http(`/api/user/recover`, { method: 'POST', data }),
161-
resetPassword: data => $http(`/api/reset`, { method: 'POST', data }),
162162
checkResetToken: (username, token) => $http(`/api/reset/${username}/${token}/validate`),
163163
trust: {
164164
getTrustList: () => $http('/api/trustlist'),

0 commit comments

Comments
 (0)