Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This here, it's way easier to grep a file for /v1/ and show all the api endpoints then ensure you haven't missed something.


grep for /* and omit /v2 ?


Edit:

^/api(/(?!v[0-9]).)?$ is v1

^/api/v2(/.)?$ is v2

It's really not an issue in any case, it just itches your brain, because is not as neat as you would like it to be.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: