|
module.exports = function(app) {
|
|
// FIXME: Fix until the original can be used
|
|
app.get('/api/modelInfo', function(req, res) {
|
|
app.models.Schema.modelInfo({req}).then(json => {
|
|
res.set('Content-Type', 'application/json');
|
|
res.send(JSON.stringify(json));
|
|
});
|
|
});
|
|
};
|