Sha256: cf359e689ae6dee51173a13d2683fc5ea860c3dca9e6601c62ef6f76b5c155ab

Contents?: true

Size: 561 Bytes

Versions: 2

Compression:

Stored size: 561 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: '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

2 entries across 2 versions & 1 rubygems

Version Path
phcpress-6.2.4 config/routes.rb
phcpress-6.2.3 config/routes.rb