WIP: first prototype of the JSON API.

* Tests not included, so I cannot prove that it works
This commit is contained in:
Ancor Gonzalez Sosa 2013-07-04 14:02:50 +02:00
parent 83b10447f4
commit 27017a4823
6 changed files with 44 additions and 0 deletions

View file

@ -53,6 +53,13 @@ Osem::Application.routes.draw do
delete "/register" => "ConferenceRegistration#unregister"
end
end
namespace :api, defaults: {format: 'json'} do
namespace :v1 do
resources :conferences, :only => :index
end
end
match "/admin" => redirect("/admin/conference")
root :to => "home#index"