Sha256: ca56cc3932f8e172797638bbfc5a26d00d42c7041ccd743dd1e0ed1e26f0cdbe

Contents?: true

Size: 343 Bytes

Versions: 4

Compression:

Stored size: 343 Bytes

Contents

Bulb::Engine.routes.draw do
  scope '/:group_slug', format: false do
    get '/' => 'groups#show', as: :group

    scope '/:slug', as: :repository, format: false do
      get '/' => 'repositories#show'

      get '/tree/:reference/*path' => 'tree#show', as: :tree
      get '/blob/:reference/*path' => 'blob#show', as: :blob
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bulb-0.5.0 config/routes.rb
bulb-0.4.0 config/routes.rb
bulb-0.3.0 config/routes.rb
bulb-0.2.0 config/routes.rb