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-5.9.1 config/routes.rb
phcpresspro-5.9.0 config/routes.rb
phcpresspro-5.8.9 config/routes.rb
phcpresspro-5.8.8 config/routes.rb
phcpresspro-5.8.7 config/routes.rb
phcpresspro-5.8.6 config/routes.rb
phcpresspro-5.8.5 config/routes.rb
phcpresspro-5.8.4 config/routes.rb
phcpresspro-5.8.3 config/routes.rb
phcpresspro-5.8.2 config/routes.rb
phcpresspro-5.8.1 config/routes.rb
phcpresspro-5.8.0 config/routes.rb
phcpresspro-5.7.7 config/routes.rb
phcpresspro-5.7.6 config/routes.rb
phcpresspro-5.7.5 config/routes.rb