Sha256: 30171412c4c70721fc49e78b90a7600bea05d2c264dcecd8758617c5a97fc114

Contents?: true

Size: 361 Bytes

Versions: 3

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module LB
  module Project
    # Base route
    class Route < Roda
      def self.setup(route)
        translations = [File.join(LB::Project.root, 'locales')]
        route.plugin :i18n, translations: translations
        route.opts[:root] = LB::Project.root
        route.plugin :public, root: 'docs'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lb-project-0.1.1 lib/lb/project/route.rb
lb-project-0.1.0 lib/lb/project/route.rb
lb-project-0.0.1 lib/lb/project/route.rb