GreenMercury::Application.routes.draw do
  resources :mentor_applications, except: [:index, :edit, :destroy]
  resources :member_applications, except: [:index, :edit, :destroy]
  root 'index#index'

  resources :events
  resources :event_rsvps, only: [:create, :destroy]
  resources :event_organizers, only: [:create]

  get '/new_applications/index', controller: :new_applications, action: :index, as: :new_application
  get '/new_applications/show', controller: :new_applications, action: :show
  get '/review_applications/index', controller: :review_applications, action: :index
  get '/rejected_applications/index', controller: :rejected_applications, action: :index

  post '/session', controller: :session, action: :acquire_session, as: :acquire_session
  post '/logout', controller: :session, action: :logout, as: :logout

  resources :concepts, except: [:destroy, :edit, :update]
  resources :concept_descriptions, only: [:new, :create, :destroy]
  resources :projects, except: [:destroy]
  resources :comments, except: [:edit, :update, :destroy]
  resources :mentor_participations, only: [:update]
  resources :member_participations, only: [:update]

  resources :meeting_requests
  get '/profile/edit', controller: :profile, action: :edit, as: :edit_profile
  get '/profile/:uuid', controller: :profile, action: :show, as: :show_profile

  resources :claim_meeting_requests, only: [:create]
end
