core/utils/oilsUtils.js
function(arrPathFromRoot) {
		if (arrPathFromRoot) {
			let routes = {};
			for (let pathFromRoot of arrPathFromRoot) {
		    routes['/' + pathFromRoot] = {
		    	get: function(req, res) {
			      web.utils.serveStaticFile(path.join(web.conf.publicDir, pathFromRoot), res);
			    }
		    }
		  }

		  return routes;
		}

		return null;
	}
function(arrPathFromRoot) {
		if (arrPathFromRoot) {
			let routes = {};
			for (let pathFromRoot of arrPathFromRoot) {
		    routes['/' + pathFromRoot] = {
		    	get: function(req, res) {
			      web.utils.serveStaticFile(path.join(web.conf.publicDir, pathFromRoot), res);
			    }
		    }
		  }

		  return routes;
		}

		return null;
	}
function ( arrPathFromRoot ) { if ( arrPathFromRoot ) { let routes = { } ; for ( let pathFromRoot of arrPathFromRoot ) { routes [ '/' + pathFromRoot ] = { get : function ( req , res ) { web . utils . serveStaticFile ( path . join ( web . conf . publicDir , pathFromRoot ) , res ) ; } } } return routes ; } return null ; }
because of the ability to change the context of the public folder some icons like favico, sitemap, robots.txt are still best served in root
because of the ability to change the context of the public folder some icons like favico sitemap robots . txt are still best served in root