Quantcast
Channel: API Versioning for Rails Routes - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Answer by Amed R for API Versioning for Rails Routes

$
0
0

Ryan Bigg answer worked for me.

If you also want to keep query parameters through the redirect, you can do it like this:

match "*path", to: redirect{ |params, request| "/api/v2/#{params[:path]}?#{request.query_string}" }

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>