Sha256: 46127b7a631e494e6d30e219b5a9b2d82e9f48f2f4cf5b4398234abe66454870

Contents?: true

Size: 587 Bytes

Versions: 17

Compression:

Stored size: 587 Bytes

Contents

Phcpresspro::Engine.routes.draw do
  
	# Frontend
	namespace :frontend do
		resources :articles
		resources :indices
	end
  
	# API
	namespace :api do
		namespace :v1 do
			resources :posts, defaults: {format: 'json'} 
			resources :categories, defaults: {format: 'json'}
		end
	end

	# Article Routes
	namespace :articles do
		resources :posts, class_name: 'Phcpresspro::Articles::Post'
	end

	# Module Routes
	namespace :modules do
		resources :connections, class_name: 'Phcpresspro::Modules::Connection'
		resources :categories, class_name: 'Phcpresspro::Modules::Category'
	end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
phcpresspro-5.7.4 config/routes.rb
phcpresspro-5.7.3 config/routes.rb
phcpresspro-5.7.2 config/routes.rb
phcpresspro-5.7.1 config/routes.rb
phcpresspro-5.7.0 config/routes.rb
phcpresspro-5.6.2 config/routes.rb
phcpresspro-5.6.1 config/routes.rb
phcpresspro-5.6.0 config/routes.rb
phcpresspro-5.5.8 config/routes.rb
phcpresspro-5.5.7 config/routes.rb
phcpresspro-5.5.6 config/routes.rb
phcpresspro-5.5.5 config/routes.rb
phcpresspro-5.5.4 config/routes.rb
phcpresspro-5.5.3 config/routes.rb
phcpresspro-5.5.2 config/routes.rb
phcpresspro-5.5.1 config/routes.rb
phcpresspro-5.5.0 config/routes.rb