Sha256: d3d53ab97e59baeef0d7926424ec533c629eaa8dbd95140a374a664f719f39c5

Contents?: true

Size: 1.14 KB

Versions: 3

Compression:

Stored size: 1.14 KB

Contents

Rails.application.routes.draw do
	get 'tags' => 'odania/tags#index'
	get 'tags/:tag' => 'odania/tags#show', as: 'tag'
	mount Ckeditor::Engine => '/ckeditor'

	match '/deliver/click' => 'odania/deliver#click', via: [:get, :post], as: :deliver_click

	get '/imprint' => 'info#imprint'
	get '/contact' => 'info#contact'
	post '/contact' => 'info#contact_send'

	namespace :admin do
		namespace :odania do
			resources :menus do
				resources :menu_items, controller: 'menu_items', as: 'odania_menu_items' do
					member do
						get :set_default
					end
				end
				resources :contents, controller: 'contents', as: 'odania_contents'

				collection do
					post :select_odania_menu
				end
			end
			get 'menu_items' => 'menu_items#overview'
			get 'contents' => 'contents#overview'
			resources :sites
			resources :languages
		end
		get '/' => 'dashboard#index'
	end

	# Track views
	match 'track_view/:type/:id' => 'odania/statistics#track_view', :as => :update_views, via: [:get, :post, :put]

	constraints(locale: /[a-z][a-z]/) do
		get '/:locale' => 'odania/menu#menu_index'
		get '/:locale/*path' => 'odania/menu#show_page'
	end

	root to: 'odania/menu#index'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
odania_core-0.0.3 config/routes.rb
odania_core-0.0.2 config/routes.rb
odania_core-0.0.1 config/routes.rb