You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/02/20 16:21:16 UTC

[GitHub] rob05c opened a new issue #3350: Change Unnecessary Traffic Ops Golang Regex Routing

rob05c opened a new issue #3350: Change Unnecessary Traffic Ops Golang Regex Routing
URL: https://github.com/apache/trafficcontrol/issues/3350
 
 
   Currently, the TO Golang HTTP dispatch/router uses a regex for routes. This has become a legacy artifact. Regex routing isn't necessary, and requires duplicating the same constructs (`/?(\.json)?$`), and is dangerous and easy to get wrong.
   
   The TO Go router should be changed to automatically anchor (`^` and `$`), and automatically allow and strip `.json`, and be a constant string, only interpolating path parameters.
   
   This will make it easier to work with, easier to read, and much safer and harder for routes to get wrong.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services