Sha256: ca89215a0afa61b0fcd9e2b31948f6efa98c0a92bce9cd9974a9b86aad5c74f2

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

Notee::Engine.routes.draw do

  root to: 'posts#notee'

  get 'new' => 'posts#notee'
  get 'edit/:id' => 'posts#notee'
  get 'category' => 'posts#notee'
  get 'image' => 'posts#notee'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notee-0.3.2 config/routes.rb