Permalink
Browse files

config sample markdown formatting

  • Loading branch information...
1 parent 209d1b7 commit 517298c90342dfc67783d4ef42a2f5520c47737c @pdeschen committed May 23, 2011
Showing with 19 additions and 19 deletions.
  1. +19 −19 readme.md
View
@@ -40,26 +40,26 @@ The follow list all available context variable for dynamic route definition.
## Sample Configuration
- var config = {
- listen : 9090,
- upstreams : {
- test : 'localhost:4573',
- foobar : 'foobar.com:4573'
- },
- routes : {
- 'agi://(.*):([0-9]*)/(.*)' : function() {
- if (this.$callerid === 'unknown') {
- return ('agi://foobar/script/' + this.$3);
- } else {
- return ('agi://foobar/script/' + this.$3 + '?callerid' + this.$callerid);
- }
+ var config = {
+ listen : 9090,
+ upstreams : {
+ test : 'localhost:4573',
+ foobar : 'foobar.com:4573'
},
- '.*' : function() {
- return ('agi://test/');
- },
- 'agi://192.168.129.170:9090/' : 'agi://test/'
- }
- };
+ routes : {
+ 'agi://(.*):([0-9]*)/(.*)' : function() {
+ if (this.$callerid === 'unknown') {
+ return ('agi://foobar/script/' + this.$3);
+ } else {
+ return ('agi://foobar/script/' + this.$3 + '?callerid' + this.$callerid);
+ }
+ },
+ '.*' : function() {
+ return ('agi://test/');
+ },
+ 'agi://192.168.129.170:9090/' : 'agi://test/'
+ }
+ };
exports.config = config;

0 comments on commit 517298c

Please sign in to comment.