1 | /**
|
2 | * Created by tanxiangyuan on 2016/6/28.
|
3 | */
|
4 | var anyProxy = require("anyproxy");
|
5 |
|
6 | module.exports.proxyServer = function (opts) {
|
7 | //create cert when you want to use https features
|
8 | //please manually trust this rootCA when it is the first time you run it
|
9 | !anyProxy.isRootCAFileExists() && anyProxy.generateRootCA();
|
10 | new anyProxy.proxyServer(opts);
|
11 | };
|
12 |
|
13 | module.exports.fetchInterface = function (opts) {
|
14 |
|
15 | };
|
16 |
|
17 | module.exports.validateData = function (opts) {
|
18 |
|
19 | }; |
\ | No newline at end of file |