File tree Expand file tree Collapse file tree 4 files changed +6
-13
lines changed
controller-proxy/proxy-user/controllers Expand file tree Collapse file tree 4 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,4 @@ var framework = require('total.js');
22var http = require ( 'http' ) ;
33
44framework . run ( http , true , parseInt ( process . argv [ 2 ] ) ) ;
5-
6- framework . test ( true , function ( ) {
7- console . log ( '' ) ;
8- console . log ( '====================================================' ) ;
9- console . log ( 'Congratulations, the test was successful!' ) ;
10- console . log ( '====================================================' ) ;
11- console . log ( '' ) ;
12- } ) ;
5+ framework . test ( ) ;
Original file line number Diff line number Diff line change 11exports . install = function ( framework ) {
2+ framework . route ( '/users/' , json_users ) ;
23 framework . route ( '/' , json_users , [ 'proxy' ] ) ;
34} ;
45
56function json_users ( ) {
6-
7+
78 var self = this ;
8-
9+
910 var users = [
1011 { name : 'Peter' , age : 30 } ,
1112 { name : 'Jano' , age : 23 } ,
@@ -22,5 +23,5 @@ function json_users() {
2223 } ) ;
2324
2425 self . json ( output ) ;
25-
26+
2627} ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function cors_time_preflight() {
88 var self = this ;
99
1010 if ( ! self . cors ( '*' , [ 'GET' ] ) ) {
11- self . plain ( 'Not allowed ' ) ;
11+ self . plain ( 'NOT ALLOWED - OPTIONS - PREFLIGHT ' ) ;
1212 return ;
1313 }
1414
Original file line number Diff line number Diff line change 44 @{meta}
55 < meta charset ="utf-8 " />
66 < meta http-equiv ="content-language " content ="sk " />
7- < meta http-equiv ="X-UA-Compatible " content ="IE=10 " />
87 < meta name ="format-detection " content ="telephone=no "/>
98 < meta name ="viewport " content ="width=1024, user-scalable=yes " />
109 < meta name ="robots " content ="all,follow " />
You can’t perform that action at this time.
0 commit comments