Excat match of path in a route

How can we strictly check for the exact match of the path in a route?

For example, the path /data.json in a route should be allowed excatly as is, and for anything like /data.json/xxx should throw 404 not found.

Could anyone please help me in solving this.

Regards,
Irshad

Hi,

For the time being, the only way to achieve this is to specify a regex like so: ^\/data\.json$

See the Proxy Reference for more details on regex paths.

Thanks @thibaultcha, its working.