all repos — caroster @ d25fd2970a46f8b86f2abaaff47a8ebef62e4f73

[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
15  /**
16   * An asynchronous bootstrap function that runs before
17   * your application gets started.
18   *
19   * This gives you an opportunity to set up your data model,
20   * run jobs, or perform some special logic.
21   */
22  async bootstrap(context) {
23    for (let action of bootstrapActions) {
24      await action(context);
25    }
26  },
27};