瀏覽代碼

Fix /api/groups

Maarten van den Berg 6 年之前
父節點
當前提交
cc4c37a95f
共有 1 個文件被更改,包括 1 次插入2 次删除
  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