Sha256: f38ee5aa110f864c0972dcd1ca9c00066a788716f20d2787e448c0674002f651

Contents?: true

Size: 566 Bytes

Versions: 55

Compression:

Stored size: 566 Bytes

Contents

Phcpresspro::Engine.routes.draw do
  
	# Frontend
	namespace :frontend do
		resources :articles
	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

55 entries across 55 versions & 1 rubygems

Version Path
phcpresspro-6.4.1 config/routes.rb
phcpresspro-6.4.0 config/routes.rb
phcpresspro-6.3.2 config/routes.rb
phcpresspro-6.3.1 config/routes.rb
phcpresspro-6.3.0 config/routes.rb
phcpresspro-6.2.0 config/routes.rb
phcpresspro-6.1.1 config/routes.rb
phcpresspro-6.1.0 config/routes.rb
phcpresspro-6.0.2 config/routes.rb
phcpresspro-6.0.1 config/routes.rb
phcpresspro-6.0.0 config/routes.rb
phcpresspro-5.11.3 config/routes.rb
phcpresspro-5.11.2 config/routes.rb
phcpresspro-5.11.1 config/routes.rb
phcpresspro-5.11.0 config/routes.rb
phcpresspro-5.10.3 config/routes.rb
phcpresspro-5.10.2 config/routes.rb
phcpresspro-5.10.1 config/routes.rb
phcpresspro-5.10.0 config/routes.rb
phcpresspro-5.9.2 config/routes.rb