actualizacion del json

This commit is contained in:
2021-05-31 12:59:57 -05:00
parent 4d7e922fbd
commit 82a6b10c4d
+4 -5
View File
@@ -4,6 +4,10 @@ var app = express();
const sql = require('mssql')
async function traer() {
}
app.get('/busca_profesor', async(req, res) => {
try {
let pass = "67NHA*Y";
// make sure that any items are correctly URL encoded in the connection string
@@ -29,11 +33,6 @@ async function traer() {
res.status(400).json({error: true, msj: 'error al crear la consulta con sistemas', desc: err});
return
}
}
app.get('/busca_profesor', async(req, res) => {
let pon = await traer();
res.status(200).json({ data: pon });
})
module.exports = app;