Phcscriptcdnpro::Engine.routes.draw do # CDN Frontend get 'frontend/cdnpages/list', :path => "script-cdn" # Script CDN Listing System namespace :scriptcdn do # Main Script Module resources :mains do resources :authors resources :urls end # Script Information resources :versions resources :informations end # Application API namespace :api do # Routes for API resources :cdnlists, defaults: {format: 'json'} do resources :cdnlistings end end end