lib/curupira/rails/routes.rb in curupira-0.1.3 vs lib/curupira/rails/routes.rb in curupira-0.1.4
- old
+ new
@@ -1,12 +1,14 @@
module ActionDispatch::Routing
class Mapper
def curupira_routes
scope module: 'curupira' do
resources :users, except: :destroy do
- get 'groups/:group_id/roles', to: 'users#permission',as: 'permission', action: :permission, controller: :users
+ get 'groups/:group_user_id/roles', to: 'users#permission',as: 'permission', action: :permission, controller: :users
end
+ patch 'permissions/:group_user_id', to: 'permissions#create', as: 'permissions'
+
resources :groups, except: :destroy
resources :roles, except: :destroy
resource :session, only: [:new, :create] do
get :destroy, as: :destroy
end