Finish code for updating email

This commit is contained in:
Dane Everitt
2019-06-24 21:43:46 -07:00
parent 438f1b06b9
commit da24f66563
6 changed files with 134 additions and 20 deletions

View File

@@ -0,0 +1,9 @@
import http from '@/api/http';
export default (email: string, password: string): Promise<void> => {
return new Promise((resolve, reject) => {
http.put('/api/client/account/email', { email, password })
.then(() => resolve())
.catch(reject);
});
};