americano icon indicating copy to clipboard operation
americano copied to clipboard

Using mount point in configuration

Open jsilvestre opened this issue 10 years ago • 0 comments

Last expression version mainstreams the use of mount point. So we can now use app.use '/a/random/point', americano.static path.resolve(.... This is especially relevant when you want to serve assets from various sub folders (like /public/) without doing dirty trick (like this https://github.com/cozy/cozy-files/blob/master/server/config.coffee#L7-L12).

We can support this feature with the current configuration format, but that will lead to more weird stuff that we'll have to document (and we must be as backward compatible as possible). It's kinda related to #23 in my mind.

jsilvestre avatar Jun 25 '14 14:06 jsilvestre