Sha256: 63bbd866997473818e911de15f111959ef616ce70be607ce9e142ca41ee3b6a9
Contents?: true
Size: 795 Bytes
Versions: 2
Compression:
Stored size: 795 Bytes
Contents
Answers::Core::Engine.routes.draw do namespace :api, defaults: {format: 'json'} do namespace :v1 do resources :questions resources :answers resources :tags resources :taggings end end match '/about' => "home#about" , :as => :about, :via => :get match '/search/' => "search#index" , :as => :search, :via => [:get, :post] match '/search/tag/' => "search#tag_search" , :as => :tag_search, :via => [:get, :post] match 'autocomplete' => "search#autocomplete", :via => :get resources :questions, only: [:index, :show], :path => 'answers', :as => 'answers' resources :tags, only: [:index, :show] # root :to => "home#index" match '/' => 'home#index', :via => :get, as: 'home' devise_for :users, class_name: "Answers::User", module: :devise end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
answers-core-0.0.0.2 | config/routes.rb |
answers-core-0.0.0 | config/routes.rb |