Sha256: b8d821593c4e987b2c5db08e61c239c349f17e0b36bf37ebaabbd8fb678c5b0e
Contents?: true
Size: 615 Bytes
Versions: 8
Compression:
Stored size: 615 Bytes
Contents
Rails.application.routes.draw do # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html namespace :api do scope module: :v1, constraints: Stitches::ApiVersionConstraint.new(1) do resource 'ping', only: [ :create ] resource 'hellos' # Add your V1 resources here end scope module: :v2, constraints: Stitches::ApiVersionConstraint.new(2) do resource 'ping', only: [ :create ] resource 'hellos' # This is here simply to validate that versioning is working # as well as for your client to be able to validate this as well. end end end
Version data entries
8 entries across 8 versions & 1 rubygems