Notes/src/routes/api/password.js

11 lines
274 B
JavaScript
Raw Normal View History

2017-10-21 21:10:33 -04:00
"use strict";
const changePasswordService = require('../../services/change_password');
async function changePassword(req) {
2018-04-01 12:03:21 -04:00
return await changePasswordService.changePassword(req.body.current_password, req.body.new_password);
}
module.exports = {
changePassword
};