import { adaptExpressRoute as adapt , adaptMulter as upload } from '@/main/adapters' ; import { makeSavePictureController } from '@/main/factories/application/controllers' ; import { auth } from '@/main/middlewares' ; import { Router } from 'express' ; export default ( router ) : void => { router . delete ( '/users/picture' , auth , adapt ( makeSavePictureController ( ) ) ) ; router . put ( '/users/picture' , auth , upload , adapt ( makeSavePictureController ( ) ) ) ; } ;