Is there any work around for versioning methods and publications

Hi fellows

I’m trying to figure out a way to provide versioning system to my methods and publications, similar to RESTful API as below

https://example.com/api/v1/method
https://example.com/api/v2/method

Can we have such versioning system with DDP as well?