WIP: first prototype of the JSON API.
* Tests not included, so I cannot prove that it works
This commit is contained in:
parent
83b10447f4
commit
27017a4823
6 changed files with 44 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue