get plantel y carreras

This commit is contained in:
2020-10-04 23:29:58 -05:00
parent 3b5dca38d1
commit 6ffec1beb8
5 changed files with 59 additions and 11 deletions
+3 -5
View File
@@ -1,11 +1,9 @@
const Plantel = require('../../db/tables/Plantel')
const get = async () => {
return Plantel.findAll()
.then((res) => {
return res
})
.catch((err) => {})
return Plantel.findAll().then((res) => {
return { code: 200, data: res }
})
}
module.exports = get