8 lines
288 B
JavaScript
8 lines
288 B
JavaScript
const utils = require('./utils');
|
|
|
|
module.exports = async (ctx) => {
|
|
const currentUrl = `${ctx.params.model}/updated?${ctx.params.lang ? 'lang=' + ctx.params.lang : ''}${ctx.params.type ? '&compatible=' + ctx.params.type : ''}`;
|
|
|
|
ctx.state.data = await utils(ctx, currentUrl);
|
|
};
|