Skip to content

Instantly share code, notes, and snippets.

@smoothdvd
Created February 5, 2022 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smoothdvd/351e8bf2a745035d5d7cb4e125f0f819 to your computer and use it in GitHub Desktop.
Save smoothdvd/351e8bf2a745035d5d7cb4e125f0f819 to your computer and use it in GitHub Desktop.
server/bootstrap/index.js
'use strict';
/**
* 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.
*/
const _ = require('lodash');
const uuid = require('uuid/v4');
const { getService } = require('@strapi/plugin-users-permissions/server/utils');
const usersPermissionsActions = require('@strapi/plugin-users-permissions/server/bootstrap/users-permissions-actions');
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment