spee.ch/server/controllers/api/oEmbed/index.js
2018-07-27 15:56:56 -07:00

28 lines
648 B
JavaScript

const logger = require('winston');
const db = require('../../../models');
const getOEmbedData = (req, res) => {
logger.debug('req', req.query);
res.status(200).json({
success: true,
message: 'hello',
data: req.query,
});
// db.Blocked.refreshTable()
// .then(data => {
// logger.info('finished updating blocked content list');
// res.status(200).json({
// success: true,
// data,
// });
// })
// .catch(error => {
// logger.error(error);
// res.status(500).json({
// success: false,
// error,
// });
// });
};
module.exports = getOEmbedData;