config/routes.rb in iqvoc-4.2.0 vs config/routes.rb in iqvoc-4.3.0

- old
+ new

@@ -13,10 +13,11 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. Rails.application.routes.draw do + apipie scope ':lang', :constraints => lambda { |params, req| langs = Iqvoc::Concept.pref_labeling_languages.join('|').presence || 'en' return params[:lang].to_s =~ /^#{langs}$/ } do @@ -24,10 +25,11 @@ resource :user_session, :only => [:new, :create, :destroy] resources :users, :except => [:show] resources :concepts resources :collections + resources :imports, :only => [:index, :show, :create] get 'scheme' => 'concepts/scheme#show', :as => 'scheme' get 'scheme/edit' => 'concepts/scheme#edit', :as => 'edit_scheme' patch 'scheme' => 'concepts/scheme#update' @@ -48,28 +50,29 @@ get 'untranslated_concepts/:prefix' => 'concepts/untranslated#index', :as => 'untranslated_concepts' get 'hierarchical_concepts' => 'concepts/hierarchical#index', :as => 'hierarchical_concepts' get 'expired_concepts' => 'concepts/expired#index', :as => 'expired_concepts' get 'dashboard' => 'dashboard#index', :as => 'dashboard' + match 'dashboard/reset' => 'dashboard#reset', :as => 'reset', :via => [:get, :post] get 'config' => 'instance_configuration#index', :as => 'instance_configuration' patch 'config' => 'instance_configuration#update' - get 'import' => 'import#index', :as => 'import' - post 'import' => 'import#import' - get 'search' => 'search_results#index', :as => 'search' get 'help' => 'pages#help', :as => 'help' get '/' => 'frontpage#index' # root :to => 'frontpage#index', :format => nil end + get 'remote_labels' => 'remote_labels#show', :as => 'remote_label' get 'schema' => redirect('/'), :as => 'schema' - + get 'dataset' => 'rdf#dataset', :as => 'rdf_dataset' get 'scheme' => 'concepts/scheme#show', :as => 'rdf_scheme' get 'search' => 'search_results#index', :as => 'rdf_search' + get 'hierarchy' => 'hierarchy#index' + get 'hierarchy/:root' => 'hierarchy#show' get ':id' => 'rdf#show', :as => 'rdf' get 'collections', :as => 'rdf_collections', :to => 'collections#index'