all repos — caroster @ v1.0.0

[Octree] Group carpool to your event https://caroster.io

backend/src/index.ts (view raw)

 1import bootstrapActions from "./bootstrap";
 2import graphqlExtends from "./graphql";
 3
 4export default {
 5  /**
 6   * An asynchronous register function that runs before
 7   * your application is initialized.
 8   *
 9   * This gives you an opportunity to extend code.
10   */
11  register(context) {
12    graphqlExtends(context);
13
14    // Disable /users find REST endpoint
15    context.strapi.controller("plugin::users-permissions.user").find = () => {};
16  },
17
18  /**
19   * An asynchronous bootstrap function that runs before
20   * your application gets started.
21   *
22   * This gives you an opportunity to set up your data model,
23   * run jobs, or perform some special logic.
24   */
25  async bootstrap(context) {
26    for (let action of bootstrapActions) {
27      await action(context);
28    }
29  },
30};