Use wildcard in SESSION_ENDPOINTS _REPOST

Using tyk-community version here (Tyk-Gateway)

I would like to specify wildcard in the SESSION_ENDPOINTS , how do I do that? Tyk gateway seems to be looking for the exact match here.

The SESSION_ENDPOINTS are not API endpoints, they are three HTML pages.

Basically I would like to replace

"config_data": {
    "SESSION_ENDPOINTS": [
        "/companies/apple",
        "/companies/google",
        "/companies/microsoft"
    ],
    "TYK_SERVER": "http://tykhost/"
}

with

"config_data": {
    "SESSION_ENDPOINTS": [
        "/companies/*"
    ],
    "TYK_SERVER": "http://tykhost/"
}

i dont think tyk-gateway is picking up the wildcard here.

Hi there,

Looks like you want the array values be treated as regex. Unfortunately, that’s currently not possible, but our code is available if you’d like to take a stab at it.

That sounds good… but I’m actually unable to find ‘SESSION_ENDPOINTS’ when i try to search for this variable in the codebase :joy: do you mind pointing out where i should get started? thanks