vendredi 20 février 2015

strongloop loopback how do I serve-static with a route?

I want to do something like



app.use('/client', loopback.static(__dirname + '../client'))


using middleware.json, but the example only works from the root



"files": {
"loopback#static": {
"params": "$!../client"
}
},

Aucun commentaire:

Enregistrer un commentaire