Sha256: 163a130ff60db8978b06ab92accd6d480ea595f4b506ca6b3652aa1a10a1eabc
Contents?: true
Size: 469 Bytes
Versions: 18
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true module RailsApi class SecureResourcesController < ApplicationController before_action :authenticate_api_user!, unless: :is_navigational_format? before_action :authenticate_user!, if: :is_navigational_format? def create render json: { secure: 'data' } end def show respond_to do |format| format.html { render } format.json { render json: { secure: 'data' } } end end end end
Version data entries
18 entries across 18 versions & 1 rubygems