Skip to content

Commit

Permalink
fix: apply middlewares before container use
Browse files Browse the repository at this point in the history
  • Loading branch information
WittBulter committed May 15, 2019
1 parent 41671be commit 778af11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configs/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ export const createServer = async(): Promise<Koa> => {

const koa: Koa = new Koa()

useMiddlewares(koa)

const app: Koa = useKoaServer<Koa>(koa, routingConfigs)

useContainer(Container)

return useMiddlewares(app)
return app
}

0 comments on commit 778af11

Please sign in to comment.