The things I was to solve with is to help me start my project faster This update solves the following:
- The issue with rewriting codes for file upload (Done examples can be seen in my test controller and kernel file example 1 and example 2)
- Email sending (Done)
- Schedulers(work in progress)
- Queues (after schedulers)
Wish me the best 😊
this.app.get('/', (req, res) => res.status(200).json({ message: 'Hello' }));
this.app.post(
'/upload',
uploadHelper({
fields: [{ name: 'image', maxCount: 1 }],
validationFunction: Helper.requestFileValidation(['image/jpeg', 'image/png']),
limit: null,
}),
(req, res) => res.status(200).json({ files: req.files?.image[0], file: req.file })
);
work on file handlers, get file url for local and cloudinary or s3