Sha256: 75f2ed6cdfd0ccc22e5285fd1a531e803d84b508cd2a92ff643e08942d07a49b

Contents?: true

Size: 300 Bytes

Versions: 12

Compression:

Stored size: 300 Bytes

Contents

module Ecm
  module Cms
    class Routing
      def self.routes(router, options = {})
        options.reverse_merge!({})

        router.get '/*page', to: 'ecm/cms/page#respond', as: :page
        router.get '/' => 'ecm/cms/page#respond', :page => 'home' # , :as => :root
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ecm_cms2-3.0.3 lib/ecm/cms/routing.rb
ecm_cms2-3.0.2 lib/ecm/cms/routing.rb
ecm_cms2-3.0.1 lib/ecm/cms/routing.rb
ecm_cms2-3.0.0 lib/ecm/cms/routing.rb
ecm_cms2-2.1.4 lib/ecm/cms/routing.rb
ecm_cms2-2.1.3 lib/ecm/cms/routing.rb
ecm_cms2-2.1.2 lib/ecm/cms/routing.rb
ecm_cms2-2.1.1 lib/ecm/cms/routing.rb
ecm_cms2-2.1.0 lib/ecm/cms/routing.rb
ecm_cms2-2.0.4 lib/ecm/cms/routing.rb
ecm_cms2-2.0.3 lib/ecm/cms/routing.rb
ecm_cms2-2.0.2 lib/ecm/cms/routing.rb