summaryrefslogtreecommitdiff
path: root/app/controllers/gs_cluster_sync_log_entries_controller.rb
blob: 3e6503759b25e3a647df2f838963809cff707caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class GsClusterSyncLogEntriesController < ApplicationController

  # GET /gs_cluster_sync_log_entries/new.json
  def new
    @gs_cluster_sync_log_entry = GsClusterSyncLogEntry.new

    respond_to do |format|
      format.json { render json: @gs_cluster_sync_log_entry }
    end
  end

  # POST /gs_cluster_sync_log_entries.json
  def create
    @gs_cluster_sync_log_entry = GsClusterSyncLogEntry.new(params[:gs_cluster_sync_log_entry])

    respond_to do |format|
      if @gs_cluster_sync_log_entry.save
        format.json { render json: @gs_cluster_sync_log_entry, status: :created, location: @gs_cluster_sync_log_entry }
      else
        format.json { render json: @gs_cluster_sync_log_entry.errors, status: :unprocessable_entity }
      end
    end
  end

end