Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ransha opened this issue Dec 6, 2014 · 0 comments

Comments

@ransha
Copy link
Contributor

ransha commented Dec 6, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant