/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tests/app-template/src/index.js
25 строк
724 B
Ben Irvin
test: move app-template to common dir
03 дек 2025, 18:18
03 дек 2025, 18:18
6cc814a
Код
Авторство
О чём код?
const { createTestTransferToken } = require('./create-transfer-token'); module.exports = { /** * An asynchronous register function that runs before * your application is initialized. * * This gives you an opportunity to extend code. */ register(/* { strapi } */) {}, /** * An asynchronous bootstrap function that runs before * your application gets started. * * This gives you an opportunity to set up your data model, * run jobs, or perform some special logic. */ async bootstrap({ strapi }) { strapi.service('api::config.config').rateLimitEnable(false); strapi.service('api::config.config').adminAutoOpenEnable(false); await createTestTransferToken(strapi); }, };