Sha256: 081ffa7f0bfef01f65fe16c02ef5bdfe178f1869edcfb65561aed1b59bd2f30e

Contents?: true

Size: 473 Bytes

Versions: 5

Compression:

Stored size: 473 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: LB::Project.config.public_path
        route.plugin :flash
        route.plugin :lb_project
        route.plugin :json
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lb-project-0.3.0 lib/lb/project/route.rb
lb-project-0.2.3 lib/lb/project/route.rb
lb-project-0.2.2 lib/lb/project/route.rb
lb-project-0.2.1 lib/lb/project/route.rb
lb-project-0.2.0 lib/lb/project/route.rb