From 82a6b10c4d011ff2cd0801d281aa80ba4c598f9d Mon Sep 17 00:00:00 2001 From: DanielRamirezGe Date: Mon, 31 May 2021 12:59:57 -0500 Subject: [PATCH] actualizacion del json --- routes/busca_profesor.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/routes/busca_profesor.js b/routes/busca_profesor.js index aa95bc9..e11fdd8 100644 --- a/routes/busca_profesor.js +++ b/routes/busca_profesor.js @@ -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; \ No newline at end of file