I want to be able to mount all my resources in both my 'natural' and '/ api'. Is there an easy way to do this with railways?
some code such as config / routes / API_outsers. Rb and those routes Put whatever you want for your "natural" and "
/ API ". Then load the file into your
config / routes.rb , once in the block, and once the
namespace block (your
Api Namespace is on)
your :: application.routes.draw to load 'path / api_routes.rb' name space: API do load 'route / API_outsers .bb' end # ... end
Comments
Post a Comment