FINRAOS / MSL

MSL (pronounced 'Missile') stands for Mock Service Layer. Our tools enable quick local deployment of your UI code on Node and mocking of your service layer for fast, targeted testing.
http://finraos.github.io/MSL/
Apache License 2.0
32 stars 24 forks source link

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

Open ransha opened 9 years ago

ransha commented 9 years ago

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.