Rails.application.routes.draw do root to: 'static_pages#roadmap' get '/roadmap', to: 'static_pages#roadmap' namespace :admin do root to: 'boards#index' resources :boards resources :post_statuses resources :users end devise_for :users resources :boards, only: [:show] post '/posts', to: 'posts#create' get '/posts', to: 'posts#index_by_board_id' get '/post_statuses', to: 'post_statuses#index' end