Skip to content

Commit

Permalink
bugfix order framework
Browse files Browse the repository at this point in the history
  • Loading branch information
rkamysz committed Jul 25, 2023
1 parent e794284 commit 7c0ca98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/api/start-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ export const startApi = async (dependencies: ApiDependencies, ...args: string[])
const vars = new ConfigVars();
const options = apiCommand.parse(args).opts<ApiCommandOptions>();
const config = buildApiConfig(vars, databaseConfigBuilder, options);
const routes = routesProvider(ioc);

await setupIoc(config, ioc);

api.setup(config);

routes.forEach(route => {
Route.mount(api, route);
routesProvider(ioc).forEach(route => {
Route.mount(api.framework, route);
});

return api.start();
Expand Down

0 comments on commit 7c0ca98

Please sign in to comment.