Comments (5)
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: {
Test1: {
url: "/Test-0/(.*)",
rewrite: "/api/Test/[1]",
host: "10.13.125.167",
port: 81
}
}
or so:
routes: {
Test1: {
url: "/Test-0/(GetPersons)",
rewrite: "/api/Test/[1]",
host: "10.13.125.167",
port: 81
}
}
from impress.
But it is a real task to do next forwards, such as
from
http://host1/Test/GetPerson
http://host1/Test/GetPersons
http://host1/Test/GetDataTable
to
http://host2:81/api/Test/GetPerson
http://host2:81/api/Test/GetPersons
http://host2:81/api/Test/GetDataTable
from impress.
i know that example above can be made by simple regexp, but framework should provide ability to do stupid routes also
from impress.
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?
from impress.
Fixed
from impress.
Related Issues (20)
- Impress Documentation HOT 1
- Support for custom `context` provider HOT 4
- Support for custom `error` catcher for api HOT 10
- Error on context client start session HOT 1
- Serve large files HOT 1
- Support multiple SSL certificates
- Support certbot HOT 1
- Graceful shutdown start message
- Error in static serve
- Refactor codebase for consistent return HOT 1
- Autocreate folder: application/tasks
- Issue after migration to v3 HOT 1
- Metacom doesn't return an array with some objects; it triggers a timeout.
- Restart on EADDRINUSE HOT 4
- Integration with native node.js test runner
- Template pages for HTTP errors
- Template for virtual folders
- Error processing url in static directory HOT 4
- HEADERS_SENT on node 20, server static from empty folder
- Maximum call stack size exceeded
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from impress.