Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
2016-09-12 18:18:48 +0800
Commit
e2109ff88f416408d3013c8e7356595d3322ee9b
1 parent
92a29cea
sub domains
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
doraemon/middleware/sub-domain.js
doraemon/middleware/sub-domain.js
View file @
e2109ff
...
...
@@ -8,7 +8,7 @@
module
.
exports
=
()
=>
{
return
(
req
,
res
,
next
)
=>
{
if
(
req
.
subdomains
.
length
)
{
switch
(
req
.
subdomains
)
{
switch
(
req
.
subdomains
[
0
]
)
{
case
'www'
:
// 主站
case
'new'
:
// 原新版
case
'guang'
:
// 逛
...
...
Please
register
or
login
to post a comment