In nodejs, static files are served through express.static, which can be configured to mount a harddisk parth to a virtual path.
e.g.: express.static('/files', 'uf-contents/') then every url request starts with /files will trigger express to find static files in the uf-contents folder
Shall we add a config to ufrontApp to set such routes? like
staticPaths: [new Pair('/files','uf-contents'), ...]
But on neko and php static files are served by the web server (nginx, apache), I am not sure what we can do there.
In nodejs, static files are served through
express.static
, which can be configured to mount a harddisk parth to a virtual path.e.g.:
express.static('/files', 'uf-contents/')
then every url request starts with/files
will trigger express to find static files in theuf-contents
folderShall we add a config to ufrontApp to set such routes? like
staticPaths: [new Pair('/files','uf-contents'), ...]
But on neko and php static files are served by the web server (nginx, apache), I am not sure what we can do there.