summaryrefslogtreecommitdiff
path: root/config/routes/group.rb
blob: 5b3e25d5e3d69fc9214a00928cb5ff4a43f82d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
resources :groups, constraints: { id: /[a-zA-Z.0-9_\-]+(?<!\.atom)/ }  do
  member do
    get :issues
    get :merge_requests
    get :projects
    get :activity
  end

  scope module: :groups do
    resources :group_members, only: [:index, :create, :update, :destroy], concerns: :access_requestable do
      post :resend_invite, on: :member
      delete :leave, on: :collection
    end

    resource :avatar, only: [:destroy]
    resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create]
  end
end