Destory api. subdomain
api.example.com --> example.com/api
This commit is contained in:
parent
8eebec30b8
commit
003ecd4c58
5 changed files with 8 additions and 6 deletions
|
|
@ -53,7 +53,7 @@ app.use((req, res, next) => {
|
|||
/**
|
||||
* Register modules
|
||||
*/
|
||||
app.use(vhost(`api.${config.hostname}`, require('./api/server')));
|
||||
app.use('/api', require('./api/server'));
|
||||
app.use(vhost(config.secondary_hostname, require('./himasaku/server')));
|
||||
app.use(vhost(`file.${config.secondary_hostname}`, require('./file/server')));
|
||||
app.use(require('./web/server'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue