ax1/a1-server

"/resources/:id": "" rule fails

Opened this issue · 1 comments

ax1 commented

And '/resources/:id': 'resources' works fine

Therefore:
a. in the documentation, put the automatic rest params at top, at least as a reminder because when reading readme, we tend to read first rules and we use them install of automatic rest params
b. either remove empty '' values on keys and make the path explicit (in fact there is no gain in using '') and update doc
c. or solve the issue

by now, best is to solve a) and b)

ax1 commented

Additionally, when using with proxies:

const rules = {
  "/security": "http://localhost:8082" //this FAILS
   "/security(/*)": "http://localhost:8082" //this works
}

So we should add an enhancement label to review in general how to use (SIMPLIFY) routing because in other routing systems, the expected is that /security will redirect with /security/ and with /security/children.ext. As usual, KISS is the best approach.