express-rest-decorators - v1.0.0-rc.2
    Preparing search index...

    Function createExpressServer

    • Create a fresh Express v5 app, install body-parsers (express.json() and express.urlencoded({extended:true})), then mount controllers. Convenience entry point.

      Returns Promise.

      Boot order:

      1. app.use(alsMiddleware) ← installed by useExpressControllers as first call
      2. app.use(express.json()) ← body parsers after ALS (not before)
      3. app.use(express.urlencoded(...))
      4. ... controller routers and error middleware via useExpressControllers

      Note: body parsers are passed via BootOptions.middlewares as function-form globals so they mount INSIDE useExpressControllers AFTER the ALS wrapper.

      Parameters

      Returns Promise<Express>