Sha256: 67bf5efb4e06902aa266a9e77b11e7565362aaa60878c28dd583062b7e48337c

Contents?: true

Size: 552 Bytes

Versions: 10

Compression:

Stored size: 552 Bytes

Contents

Phcpress::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: 'Phcpress::Articles::Post'
	end

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
phcpress-6.4.4 config/routes.rb
phcpress-6.4.3 config/routes.rb
phcpress-6.4.2 config/routes.rb
phcpress-6.4.1 config/routes.rb
phcpress-6.4.0 config/routes.rb
phcpress-6.3.0 config/routes.rb
phcpress-6.2.8 config/routes.rb
phcpress-6.2.7 config/routes.rb
phcpress-6.2.6 config/routes.rb
phcpress-6.2.5 config/routes.rb