Desplegando App

This commit is contained in:
2022-02-25 13:15:51 -05:00
parent 7e6467e75d
commit f12b75b26d
1182 changed files with 166158 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
/*
* GET home page.
*/
exports.index = function (req, res, next) {
req.getConnection(function (err, connection) {
connection.query('SELECT ? AS RESULT', ['Hello World!'], function (err, results) {
if (err) return next(err);
res.render('index', {
title: 'express-myconnection',
result: results[0].RESULT
});
});
});
};