Sha256: 021ff8ef88224f4ab8fbfbbabb9d7fd48981d1a54893a8a2f9337d7fd836625e

Contents?: true

Size: 437 Bytes

Versions: 1

Compression:

Stored size: 437 Bytes

Contents

<%= class_name %>::Engine.routes.draw do
  constraints ->(req) { req.format == :json } do
    get "/ping" => "ping#index"
    get "/ping/secured" => "ping#secured"

    resources :authorizations, path: 'auth', only: [:index, :create]

    resources :projects, only: [:index, :show, :update, :create]
    resource :profile, only: [:show] do
      resources :user_identities, only: [:index, :destroy], path: 'identities'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
billet-0.0.1 lib/generators/billet/namespace/templates/config/api_routes.rb.erb