Project

General

Profile

Download (669 Bytes) Statistics
| Branch: | Tag: | Revision:
2807589b Corey Osman
# config/routes/api/v1.rb
76cd46ce Ohad Levy
Foreman::Application.routes.draw do
2807589b Corey Osman
namespace :api, :defaults => {:format => 'json'} do
scope :module => :v1, :constraints => ApiConstraints.new(:version => 1, :default => true) do
resources :bookmarks, :except => [:new, :edit]
resources :architectures, :except => [:new, :edit]
ba69b49b Martin Bačovský
resources :users, :except => [:new, :edit]
2807589b Corey Osman
resources :operatingsystems, :except => [:new, :edit] do
member do
get 'bootfiles'
end
end

match '/', :to => 'home#index'
match 'status', :to => 'home#status', :as => "status"
b2b47290 Petr Chalupa
match '*other', :to => 'home#route_error'
2807589b Corey Osman
end
#
end

end