Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pisns-forum-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
scrmGroup
pisns-forum-api
Commits
a2548616
Commit
a2548616
authored
Mar 25, 2015
by
张淼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5a896156
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
index.js
app/controllers/mobile/index.js
+21
-0
config.js
config/config.js
+6
-3
No files found.
app/controllers/mobile/index.js
0 → 100644
View file @
a2548616
'use strict'
;
var
express
=
require
(
'express'
),
router
=
express
.
Router
(),
config
=
require
(
'../../../config/config'
);
module
.
exports
=
function
(
app
)
{
app
.
use
(
'/v1/forum'
,
router
);
};
router
.
get
(
'/index'
,
function
(
req
,
res
,
next
)
{
console
.
log
(
'in==========='
);
var
pageUrl
=
req
.
query
.
pageUrl
;
// console.log(config.indexUrl);
if
(
pageUrl
){
}
else
{
}
res
.
json
(
'success'
);
});
\ No newline at end of file
config/config.js
View file @
a2548616
...
@@ -23,7 +23,8 @@ var config = {
...
@@ -23,7 +23,8 @@ var config = {
bucketNameDev
:
'pisns-oss-dev'
,
bucketNameDev
:
'pisns-oss-dev'
,
prodCDNURL
:
'http://fs.wxpai.cn/'
,
prodCDNURL
:
'http://fs.wxpai.cn/'
,
devCDNURL
:
'http://dev.fs.wxpai.cn/'
devCDNURL
:
'http://dev.fs.wxpai.cn/'
}
},
indexUrl
:
'http://www.baidu.com'
},
},
test
:
{
test
:
{
...
@@ -45,7 +46,8 @@ var config = {
...
@@ -45,7 +46,8 @@ var config = {
bucketNameDev
:
'pisns-oss-dev'
,
bucketNameDev
:
'pisns-oss-dev'
,
prodCDNURL
:
'http://fs.wxpai.cn/'
,
prodCDNURL
:
'http://fs.wxpai.cn/'
,
devCDNURL
:
'http://dev.fs.wxpai.cn/'
devCDNURL
:
'http://dev.fs.wxpai.cn/'
}
},
indexUrl
:
''
},
},
...
@@ -69,7 +71,8 @@ var config = {
...
@@ -69,7 +71,8 @@ var config = {
bucketNameDev
:
'pisns-oss-dev'
,
bucketNameDev
:
'pisns-oss-dev'
,
prodCDNURL
:
'http://fs.wxpai.cn/'
,
prodCDNURL
:
'http://fs.wxpai.cn/'
,
devCDNURL
:
'http://dev.fs.wxpai.cn/'
devCDNURL
:
'http://dev.fs.wxpai.cn/'
}
},
indexUrl
:
''
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment