Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD ability to use server as a part of bigger Express app #1455

Merged

Conversation

dstudzinski
Copy link
Contributor

@dstudzinski dstudzinski commented Sep 4, 2019

This PR contains:

A NEW FEATURE

Describe the problem you have without this PR

Closes #1448
Adds ability tu use server as a part of bigger express app.

It's achieved by adding new option for db.server named startServer which is default set to true (to be backwards compatible). When startServer is set to false only express app is returned which allows to mount server as a part of bigger express app.
req.basUrl check was also modified to support different mount points.

Todos

  • Tests
  • Documentation
  • Typings
  • Changelog

As I wrote in feature request I will be offline for up to two weeks. I will fix all comments and add docs/update changelog when I will be back online.

@pubkey pubkey merged commit 80e75d7 into pubkey:master Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: allow server to be sub app in express
2 participants