10 lines
250 B
TypeScript
10 lines
250 B
TypeScript
|
import http from '@/api/http';
|
||
|
|
||
|
export default (email: string): Promise<void> => {
|
||
|
return new Promise((resolve, reject) => {
|
||
|
http.post('/auth/password', { email })
|
||
|
.then(() => resolve())
|
||
|
.catch(reject);
|
||
|
});
|
||
|
};
|