all files / lib/support/ conf.js

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 1/1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33              10×                                                  
'use strict';
 
/**
 * The default configuration options.
 * @module Configuration
 * @type object
 */
module.exports = function(self){ return {
 
    [self.name]: {
        /**
         * The methods allowed for the router
         */
        methods: [
            { type: 'http'   , name:'GET'      },
            { type: 'http'   , name:'POST'     },
            { type: 'http'   , name:'PUT'      },
            { type: 'http'   , name:'DELETE'   },
            { type: 'http'   , name:'HEAD'     }
        ]
    },
 
    /**
     * Enable the bundle path
     * @type object
     * @kind __required__ property
     */
    path: {
        router : { type:'join', args:['${root}', 'router${ext}'] },
        bundles: { type:'join', args:['${root}', 'bundles'] }
    }
}}