Blame view

src/api/game/controllers/game.js 315 Bytes
jay committed
1
"use strict";
2 3

/**
jay committed
4
 * game controller
5 6
 */

jay committed
7
const { createCoreController } = require("@strapi/strapi").factories;
8

jay committed
9 10 11 12 13 14
module.exports = createCoreController("api::game.game", () => ({
  async importSeedData(ctx) {
    await strapi.service("api::game.game").importSeedDataFromApi();
    ctx.send({ ok: true });
  },
}));