grunt-express icon indicating copy to clipboard operation
grunt-express copied to clipboard

Mount point for directories in 'bases' option

Open olanod opened this issue 12 years ago • 0 comments

In express we can 'mount' a directory on a base URL giving two arguments to the app.use function, for example:

app.use('/lib',express.static('/path/to/lib'));

bases could be an object as well or the array components of bases could be an array with two elements.

// object
bases: {
    '/lib': '/path/to/lib'
}
// array
bases: [
    ['/lib','/path/to/lib']
]

olanod avatar Nov 07 '13 16:11 olanod