Sha256: 42c2b1ec2faaeba785f273d9b25d286641ad0a0612d589e82c2a4c9a052aed27

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

Notee::Engine.routes.draw do

  root to: 'notees#index'

  get 'new'       => 'notees#index'
  get 'edit/:id'  => 'notees#index'
  get 'category'  => 'notees#index'
  get 'image'     => 'notees#index'

  resources :tokens, only: [:new, :create, :destroy]

  scope :api, { format: 'json' } do
    resources :posts, only: [:index, :show, :create, :update, :destroy]
    resources :images, only: [:index, :show, :create, :destroy]
    resources :categories, only: [:index, :show, :create, :update, :destroy]
    resources :statuses, only: [:index, :show]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
notee-0.3.5 config/routes.rb
notee-0.3.4.1 config/routes.rb
notee-0.3.4 config/routes.rb