Browse Source

Fix /api/groups

Maarten van den Berg 6 years ago
parent
commit
cc4c37a95f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/controllers/api/groups_controller.rb

+ 1 - 2
app/controllers/api/groups_controller.rb

@@ -6,9 +6,8 @@ class Api::GroupsController < ApiController
6 6
   before_action :api_require_admin!, only: has_no_group
7 7
 
8 8
   # GET /api/groups
9
-  # GET /api/groups.json
10 9
   def index
11
-    @api_groups = Group.all
10
+    @groups = Group.all
12 11
   end
13 12
 
14 13
   # GET /api/groups/1