Sha256: 91d203ec88c2911a40ebe73f579134b0445da54eb63e2a445c68e142a52a6b09

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

LatoMedia::Engine.routes.draw do

  # load custom routes files
  def draw(routes_name)
    instance_eval(File.read(LatoMedia::Engine.root.join("config/routes/#{routes_name}.rb")))
  end

  # set root path
  root 'application#index'

  # import routes
  draw :api
  draw :back
  draw :doc

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lato_media-2.1.2 config/routes.rb
lato_media-2.1 config/routes.rb