Sha256: 647671ab0af1ec6828bcf3fd21eeafe536c372d04e025cb52cd9e8bc4079036a

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

# encoding: utf-8

RedisDictionary::Engine.routes.draw do

  get "/" => "translations#index", as: :redis_dictionary_root
  get "/get/(:lang)/:key" => "translations#get", lang: /[a-z]{2}/, key: /.*/ ,defaults: { format: "json"}
  resources :translations, only: [:index, :create, :destroy]

  # necessary to add into your app routes config
  # mount RedisDictionary::Engine => '/translations'

end


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
redis_dictionary-1.0.2 config/routes.rb
redis_dictionary-1.0.1 config/routes.rb
redis_dictionary-1.0.0 config/routes.rb
redis_dictionary-0.9.9 config/routes.rb
redis_dictionary-0.9.8 config/routes.rb