summaryrefslogtreecommitdiff
path: root/lib/api/group_milestones.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/group_milestones.rb')
-rw-r--r--lib/api/group_milestones.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/api/group_milestones.rb b/lib/api/group_milestones.rb
index 9e9f5101285..82f5df79356 100644
--- a/lib/api/group_milestones.rb
+++ b/lib/api/group_milestones.rb
@@ -1,13 +1,11 @@
# frozen_string_literal: true
module API
- class GroupMilestones < Grape::API
+ class GroupMilestones < Grape::API::Instance
include MilestoneResponses
include PaginationParams
- before do
- authenticate!
- end
+ before { authenticate! }
params do
requires :id, type: String, desc: 'The ID of a group'