mirror of
https://github.com/zyphlar/doorlock.git
synced 2024-04-03 21:36:03 +00:00
11 lines
213 B
JavaScript
11 lines
213 B
JavaScript
const Cobot = require('../models/cobot')
|
|
|
|
module.exports = (req, res) => {
|
|
Cobot.getCards()
|
|
.then(cards => {
|
|
console.log('GOT CARDS:', cards)
|
|
res.redirect('/')
|
|
})
|
|
.catch(console.error)
|
|
}
|