Sha256: cb6d1a7068d8a91e67b67b9cfd45653519260c4bf0706689720bdffdbe58c25f

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

Rails.application.routes.draw do
  scope path: Apress::Documentation[:path_scope] do
    scope module: :apress, constraints: Apress::Documentation[:routes_constraints] do
      scope module: :documentation do
        get "/documentation/(*path)", to: 'documents#show', as: :documentation
      end

      scope path: :api do
        scope module: :documentation do
          resource :swagger, controller: :swagger_ui, only: :show
          resource :docs, controller: :swagger, only: :show
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
apress-documentation-0.4.0 config/routes.rb