2017-10-13 14:23:00 +00:00
|
|
|
module.exports = function(app) {
|
2019-01-25 16:05:53 +00:00
|
|
|
// 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));
|
|
|
|
});
|
|
|
|
});
|
2016-11-08 14:06:45 +00:00
|
|
|
};
|