Sha256: 808ebf0e8b6cc207fb9adf28756c097cf92cde5a4e4ecf9b91a115b3e6ea79eb

Contents?: true

Size: 521 Bytes

Versions: 4

Compression:

Stored size: 521 Bytes

Contents

Phcpresspro::Engine.routes.draw do

	# API Routes
	namespace :api, :path => "", :constraints => {:subdomain => "api"} do
		namespace :v1 do
			resources :posts, defaults: {format: "json"}
			resources :categories, defaults: {format: "json"}
		end
	end

	# Article Routes
	namespace :article do
		resources :categories, class_name: "Phcpress::Articles::Category"
		resources :posts, class_name: "Phcpress::Articles::Post"
	end

	# Frontend Routes
	namespace :blog do
		resources :articles, only: [:index, :show]
	end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcpresspro-87.0.3 config/routes.rb
phcpresspro-87.0.2 config/routes.rb
phcpresspro-87.0.1 config/routes.rb
phcpresspro-87.0.0 config/routes.rb