- Copy contents of file into a
route
located outside of any repos. cd /YOUR-REPO-DIR/
chmod +x route
ln -s $PWD/route /usr/local/bin/
route my_new_route
api_v1_my_new_route POST /api/v1/my_new_route(.:format) api/v1/my_new_route#create
compose_api_v2_my_new_route POST /api/v2/my_new_route/update(.:format) api/v2/my_new_route#udpate