-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Implement rewriting without regex expression (for example: (.*) on line end) #3
Comments
Ok, but give me real example where it is needed, this example have no sense, it maps one url to one route, if we do so, config file will turns into list of hundred urls. I'll advise to do it in two following ways instead: routes: { or so: routes: { |
But it is a real task to do next forwards, such as |
i know that example above can be made by simple regexp, but framework should provide ability to do stupid routes also |
Point of this discussion is to give Eeagleeye ability to create tool for very simple url-route administration. When end user not need to know regexp and he only use tool, but not write expressions. But now he cannot do this without framework support. Or I'm not quite right? |
Fixed |
Cumulated stable updates from "plugins" branch #3
When we have
"routes": {
"Test1": {
"url": "/Test-0/GetPersons",
"rewrite": "/api/Test/GetPersons",
"host": "10.13.125.167",
"port": 81
}
}
//Test1 /Test-0/GetPersons(.) /api/Test/GetPersons 10.13.125.167 81
the rewrite engine not accept url, but when we change "url" option to "url": "/Test-0/GetPersons(.)" then all works fine.
Can you implement simple syntax when we not need (.*) at end of url.
The text was updated successfully, but these errors were encountered: