August 2025
Intermediate to advanced
270 pages
6h 16m
English
To set up iOS path configuration, first create a new route (or endpoint) on the server that points to /configurations/ios_v1.
| | Rails.application.routes.draw do |
| | resource :session, only: %i[new create destroy] |
| | |
| | resources :hikes do |
| | resource :map, only: :show |
| | resources :likes, only: %w[create destroy] |
| | end |
| | |
| | resources :users, only: :index do |
| | resources :hikes, only: :index, controller: :user_hikes |
| | end |
| | |
| » | resources :configurations, only: [] do |
| » | get :ios_v1, on: :collection |
| » | end |
| | |
| | root "hikes#index" |
| | end |
You’ll want different path configurations for each platform, so prefix this one with ios. I also like to version ...
Read now
Unlock full access