Sha256: 490e2bc6f98ccfd35110fecbfed6f40ce34ad905644ff9ace81b3e3edad7f906
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
Rails.application.routes.draw do root :to => 'application#index' mount OpenStax::Accounts::Engine => '/accounts' post 'oauth/token', :to => 'oauth#token' namespace :api do post 'dummy', :to => 'dummy#dummy' resources :users, :only => [:index] resource :user, :only => [:update] resources :groups, :only => [:show, :create, :update, :destroy] do post '/members/:user_id', to: 'group_members#create' delete '/members/:user_id', to: 'group_members#destroy' post '/owners/:user_id', to: 'group_owners#create' delete '/owners/:user_id', to: 'group_owners#destroy' post '/nestings/:member_group_id', to: 'group_nestings#create' delete '/nestings/:member_group_id', to: 'group_nestings#destroy' end resources :application_users, :only => [:index] do collection do get 'updates' put 'updated' end end resources :application_groups, :only => [] do collection do get 'updates' put 'updated' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems