12345678910111213141516171819202122 |
- class Api::GroupsController < ApiController
- before_action :set_group, only: [:show]
- before_action :require_membership!, only: [:show]
- before_action :api_require_admin!, only: [:index]
-
-
- def index
- @api_groups = Api::Group.all
- end
-
- def show
- end
- private
-
- def set_group
- @group = Group.find(params[:id])
- end
- end
|