Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.verReglamento = function(req, res) {
- models.regla.findOne({
- where: { id: req.params.id }
- }).then(Reglamento => {
- var filePath = "../../public/uploads/index/conocenos/reglamentos/constancia.pdf";
- fs.readFile(filePath , function (err,data){
- res.contentType("application/pdf");
- res.send(data);
- });
- }).catch(err => {
- res.json(err);
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement