Skip to content

Commit

Permalink
Add getter for the Express server instance in Runner.js so applicatio…
Browse files Browse the repository at this point in the history
…ns can add middleware, own routes, etc.
  • Loading branch information
Rekhyt committed Feb 22, 2020
1 parent 1ccf9fa commit ae1f901
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ class Runner {
this._running = false
}

/**
* @return {Express}
*/
get server () {
return this._server
}

// istanbul ignore next
/**
* Builds a default runner on an express server.
Expand Down

0 comments on commit ae1f901

Please sign in to comment.