game.js
315 Bytes
"use strict";
/**
* game controller
*/
const { createCoreController } = require("@strapi/strapi").factories;
module.exports = createCoreController("api::game.game", () => ({
async importSeedData(ctx) {
await strapi.service("api::game.game").importSeedDataFromApi();
ctx.send({ ok: true });
},
}));