Skip to content
Snippets Groups Projects
Unverified Commit 74ab1957 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix

parent a7c01c33
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,9 @@ namespace :api do
get 'lheo' => 'lheo#index', defaults: { format: :xml }
# v0
get 'osuny' => '/api/osuny#redirect_to_v1' # redirect to v1
post 'osuny/websites/theme-released' => '/api/osuny/server/websites#theme_released'
post 'osuny/websites/theme-released' => '/api/osuny/server/websites#theme_released', defaults: {format: :json}
# v1
namespace :osuny, path: 'osuny/v1', defaults: { format: :json } do
namespace :osuny, path: 'osuny/v1', defaults: { format: :json } do
namespace :communication do
resources :websites, only: [:index, :show] do
resources :events, controller: 'websites/events', only: [:index, :show, :create, :update]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment