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
   before_action :api_require_admin!, only: has_no_group
6
   before_action :api_require_admin!, only: has_no_group
7
 
7
 
8
   # GET /api/groups
8
   # GET /api/groups
9
-  # GET /api/groups.json
10
   def index
9
   def index
11
-    @api_groups = Group.all
10
+    @groups = Group.all
12
   end
11
   end
13
 
12
 
14
   # GET /api/groups/1
13
   # GET /api/groups/1