Sha256: 524c68d6e68406dc78670bd72aabe5be810d63fbd7e633149824dab9d165908c

Contents?: true

Size: 1.49 KB

Versions: 8

Compression:

Stored size: 1.49 KB

Contents

Notee::Engine.routes.draw do

  root to: 'notees#index'

  get 'posts'                 => 'notees#index'
  get 'posts/new'             => 'notees#index'
  get 'posts/edit/:id'        => 'notees#index'
  get 'categories'            => 'notees#index'
  get 'categories/edit/:id'   => 'notees#index'
  get 'images'                => 'notees#index'
  get 'comments'              => 'notees#index'
  get 'users'                 => 'notees#index'
  get 'users/new'             => 'notees#index'
  get 'users/edit/:id'        => 'notees#index'
  get 'trashes'               => 'notees#index'
  get 'trashes/:model'        => 'notees#index'
  get 'mypage'                => 'notees#index'
  get 'mypage/edit'           => 'notees#index'
  get 'mypage/edit/password'  => 'notees#index'

  # post 'secret_published' => 'notees#secret_published'
  resources :tokens, only: [:new, :create, :destroy]

  scope :api, { format: 'json' } do
    resources :posts, only: [:index, :show, :create, :update, :destroy]
    get 'users/mypage' => 'users#mypage'
    put 'users/mypage' => 'users#update_password'
    resources :users, 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]
    resources :comments, only: [:index, :show, :create, :update, :destroy]
    resources :roles, only: [:index, :show]
    resources :trashes, only: [:index, :update]
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
notee-1.0.7 config/routes.rb
notee-1.0.6 config/routes.rb
notee-1.0.5 config/routes.rb
notee-1.0.4 config/routes.rb
notee-1.0.3 config/routes.rb
notee-1.0.2 config/routes.rb
notee-1.0.1 config/routes.rb
notee-1.0.0 config/routes.rb