Sha256: 97e99897574997e076421864a128877fc29ab10f0c0f98008a19ae9c83b20cf8

Contents?: true

Size: 1.15 KB

Versions: 9

Compression:

Stored size: 1.15 KB

Contents

PhcdevworksScripts::Engine.routes.draw do

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

    # Script CDN Routes
    namespace :script do
        resources :listings, class_name: "PhcdevworksScripts::Script::Listing" do
            resources :urls, class_name: "PhcdevworksScripts::Script::Url"
        end
        resources :authors, class_name: "PhcdevworksScripts::Script::Author"
        resources :extensions, class_name: "PhcdevworksScripts::Script::Extension"
        resources :versions, class_name: "PhcdevworksScripts::Script::Version"
    end

    # Script Snippet Routes
    namespace :snippet do
        resources :posts, class_name: "PhcdevworksScripts::Snippet::Post" do
            resources :urls, class_name: "PhcdevworksScripts::Snippet::Url"
        end
    end

  # Mount Routes
  mount PhcdevworksAccounts::Engine, :at => '/'
  mount PhcdevworksCoreModules::Engine, :at => '/'

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
phcdevworks_scripts-8.0.3 config/routes.rb
phcdevworks_scripts-8.0.2 config/routes.rb
phcdevworks_scripts-8.0.1 config/routes.rb
phcdevworks_scripts-8.0.0 config/routes.rb
phcdevworks_scripts-7.4.0 config/routes.rb
phcdevworks_scripts-7.2.0 config/routes.rb
phcdevworks_scripts-7.1.0 config/routes.rb
phcdevworks_scripts-7.0.0 config/routes.rb
phcdevworks_scripts-5.8.0 config/routes.rb