import { Request , Response } from 'express' ; import { container } from 'tsyringe' ; import ResetPasswordService from '@modules/users/services/ResetPasswordService' ; export default class ResetPasswordController { public async create ( request , response ) { const { token , password } = request . body ; const resetPassword = container . resolve ( ResetPasswordService ) ; await resetPassword . execute ( { token , password , } ) ; return response . status ( 204 ) . json ( ) ; } }