Created
October 31, 2018 12:03
-
-
Save ChukwuEmekaAjah/9e21bcda26f16171e7914b6a7c40e596 to your computer and use it in GitHub Desktop.
Initialization and use of vhost expressjs middleware library.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const express = require('express'); | |
| const app = express(); | |
| const vhost = require('vhost'); | |
| // after registering all middleware, then you register your hostname as | |
| app.use(vhost('admin.localhost',app)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment