2 * mwProxy js2 page system.
4 * invokes the apiProxy system
8 * since this is proxy server set a pre-append debug flag to know which debug msgs are coming from where
10 if( !mwApiProxyConfig
)
11 var mwApiProxyConfig
= {};
13 //The default mwApiProxyConfig config
14 //(presently hard coded but should read from user and site config)
15 var mwApiProxyDefaultConfig
= {
16 'master_whitelist' : [ 'en.wikipedia.org', 'localhost', '127.1.1.100' ],
17 'master_blacklist' : []
19 //user_white_list should also be checked and configured at runtime.
20 js2AddOnloadHook( function() {
21 //build our configuration from the default and mwApiProxyConfig vars
22 mwApiProxyConfig
= $j
.extend(true, mwApiProxyDefaultConfig
, mwApiProxyConfig
);
23 $j
.apiProxy( 'server', mwApiProxyConfig
);