MSL icon indicating copy to clipboard operation
MSL copied to clipboard

Avaliable for MSL server to inject custom functions for parsing URL to read static file.

Open ransha opened this issue 10 years ago • 0 comments

User will be able to inject custom made functions to parse URLs to retrieve static files. For example, If some of the app code or css file is been redirect to other folder like this http://localhost:8000/basefolder/redirect/:new:folder:is:here:appCode.js The default express.js will not be able to reach file appCode.js because it's trying to find ":new:folder:is:here:appCode.js" in the "/basefolder/redirect" folder.

We allow the user to inject their own function that can parse the URL in a custom way so it can look up file appCode.js in /new/folder/is/here folder.

The function will be in a designated js file and will return the parsed file path so MSL server can look up the file.

ransha avatar Dec 06 '14 04:12 ransha