actualizacion del json
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user