Permalink
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (42 sloc) 876 Bytes
Corrasable::Application.routes.draw do
get '/' => 'application#home'
post '' => 'analysis#report'
post '/syllables' => 'analysis#syllables'
post '/phonemes' => 'conversion#phonemes'
post '/nato' => 'conversion#nato'
resources :words, only: [:index, :show] do
collection do
get :bulk
post :bulk
get :search
get :suggestions
get :letter
end
end
resources :tags, only: [:index] do
collection do
get :tagged
post :tagged
get :parts
post :parts
end
end
namespace :conversion do
get :phonemes
post :phonemes
get :nato
post :nato
end
namespace :analysis do
get :syllables
post :syllables
get :report
post :report
end
namespace :phonetic do
get '', action: :index
post '', action: :index
get :algorithms
get :suggestions
end
end