1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/api/router
Vasiliy Tolstov d44adafca5
api/router: avoid unneeded loops and fix path match (#1594)
* api/router: avoid unneeded loops and fix path match

* if match found in google api path syntax, not try pcre loop
* if path is not ending via $ sign, append it to pcre to avoid matching other strings like
  /api/account/register can be matched to /api/account
* api: add tests and validations

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-29 15:23:10 +03:00
..
registry api/router: avoid unneeded loops and fix path match (#1594) 2020-04-29 15:23:10 +03:00
static api/router: avoid unneeded loops and fix path match (#1594) 2020-04-29 15:23:10 +03:00
util api/router/registry: extract path based parameters from url to req (#1530) 2020-04-15 17:50:51 +03:00
options.go Add default resolver to api router 2020-04-09 10:34:21 +01:00
router_test.go api/router: avoid unneeded loops and fix path match (#1594) 2020-04-29 15:23:10 +03:00
router.go api: add static router and improve path parser in rpc handler (#1437) 2020-03-30 09:04:59 +01:00