Sha256: d1256ff4610237db058fba71f8d7471465c1dce41beff2b27d2d49dd738758c7

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

namespace :api do

  # posts
  get 'posts', to: 'posts#index', as: 'posts_index'
  get 'post', to: 'posts#show', as: 'posts_show'

  # categories
  get 'categories', to: 'categories#index', as: 'categories_index'
  get 'category', to: 'categories#show', as: 'categories_show'

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lato_blog-2.1.2 config/routes/api.rb
lato_blog-2.1.1 config/routes/api.rb
lato_blog-2.1 config/routes/api.rb