sails.js - how to serve an arbitrary static website with Sails js? -


i created symlink pages in /assets folder called /myapp. tried access via http://192.168.20.20:1337/myapp. able access index.html, not able access of relative content css & js files.

what's correct way , allow access content? there way point route arbitrary directory?

this works:

// config/http.js  module.exports.http = {     custommiddleware: function (app) {         var express = require('express');         app.use('/myapp', express.static('/var/www/mysite'));     } ... 

Comments