Sha256: a9ec05a26e7d681e9fa4de2763d00f7da6c33537c20b0c476cb1bf8d8b07e9a7

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

Rails.application.routes.draw do
  namespace :admin do

    resources :pages, :only => [ :index, :edit, :update, :destroy ]

    resources :tags, :only => :index, :format => :json    
    resources :users, :except => [:show]
    resources :linkables, :only => :index, :format => :json do
      get "fields", :format => :js, :on => :collection
    end
    
    resources :photos, :except => [:new, :index, :show, :create] do
      get  "search", :on => :collection
      post "create", :format => :js, :on => :collection
      post "rotate", :format => :js, :on => :member
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fullstack-cms-0.3.10 config/routes.rb
fullstack-cms-0.3.9 config/routes.rb