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.7.7 config/routes.rb
phcpresspro-6.7.6 config/routes.rb
phcpresspro-6.7.5 config/routes.rb
phcpresspro-6.7.1 config/routes.rb
phcpresspro-6.7.0 config/routes.rb
phcpresspro-6.6.9 config/routes.rb
phcpresspro-6.6.8 config/routes.rb
phcpresspro-6.6.7 config/routes.rb
phcpresspro-6.6.6 config/routes.rb
phcpresspro-6.6.5 config/routes.rb
phcpresspro-6.6.4 config/routes.rb
phcpresspro-6.6.3 config/routes.rb
phcpresspro-6.6.2 config/routes.rb
phcpresspro-6.6.1 config/routes.rb
phcpresspro-6.6.0 config/routes.rb
phcpresspro-6.5.3 config/routes.rb
phcpresspro-6.5.2 config/routes.rb
phcpresspro-6.5.1 config/routes.rb
phcpresspro-6.5.0 config/routes.rb
phcpresspro-6.4.2 config/routes.rb