Sha256: 86dd4ebcce0477980e3547c59a424fee0571095370ba03661f644541430d0831

Contents?: true

Size: 990 Bytes

Versions: 1

Compression:

Stored size: 990 Bytes

Contents

Rails.application.routes.draw do
  mount Tr8n::Engine => "/tr8n"
  mount WillFilter::Engine => "/will_filter"
  mount Platform::Engine => "/platform"

  ##################################################
  # API Routes
  ##################################################
  match "/api", :to => "api/users#index"
  match "/api/user", :to => "api/users#index"
  match "/api/user/bookmarks", :to => "api/users#bookmarks"
  match "/api/bookmark/create", :to => "api/bookmarks#create"
  match "/api/bookmark/delete/:id", :to => "api/bookmarks#delete"
  match "/api/bookmark/update/:id", :to => "api/bookmarks#update"
  match "/api/bookmark(/:id)", :to => "api/bookmarks#index"
  ##################################################

  root :to => "home#index"

  [:admins, :users, :bookmarks].each do |ctrl|
    match "/admin/#{ctrl}(/:action)", :controller => "admin/#{ctrl}"
  end

  namespace :admin do
    root :to => "users#index"
  end

  match ':controller(/:action(/:id(.:format)))'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
platform-3.1.1 test/dummy/config/routes.rb