Sha256: ad4e11db38ae925474ce69247c544d74a3f5025b368ef74ee1166b0a5e2da41a
Contents?: true
Size: 607 Bytes
Versions: 7
Compression:
Stored size: 607 Bytes
Contents
Phcpress::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 # PHCAccounts Routes mount Phcaccounts::Engine, :at => '/' end
Version data entries
7 entries across 7 versions & 1 rubygems