Git Product home page Git Product logo

Comments (5)

tshemsedinov avatar tshemsedinov commented on May 18, 2024

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.

eagleeye avatar eagleeye commented on May 18, 2024

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.

eagleeye avatar eagleeye commented on May 18, 2024

i know that example above can be made by simple regexp, but framework should provide ability to do stupid routes also

from impress.

ernado-x avatar ernado-x commented on May 18, 2024

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.

tshemsedinov avatar tshemsedinov commented on May 18, 2024

Fixed

from impress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.