Skip to content

Commit

Permalink
Merge pull request #259 from dolittle:move-express-callback
Browse files Browse the repository at this point in the history
Moving express callback earlier
  • Loading branch information
einari committed Jul 2, 2021
2 parents 40c6a08 + 739b639 commit 9369cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/typescript/backend/web/Express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export async function initialize(configuration: Configuration, backendArguments:
});

logger.info(`Hosting graphql at ${graphqlRoute}`);
backendArguments.expressCallback?.(app);

apolloServer.applyMiddleware({ app, path: graphqlRoute });

Expand All @@ -71,7 +72,6 @@ export async function initialize(configuration: Configuration, backendArguments:
);
}

backendArguments.expressCallback?.(app);

logger.info(`Serving static content from '${configuration.publicPath}'`);

Expand Down

0 comments on commit 9369cc5

Please sign in to comment.