mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
Basic functionality via minitest
This commit is contained in:
@@ -2,4 +2,6 @@ class ApplicationController < ActionController::Base
|
||||
# Prevent CSRF attacks by raising an exception.
|
||||
# For APIs, you may want to use :null_session instead.
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
wrap_parameters format: [ :json ]
|
||||
end
|
||||
|
||||
14
spec/dummy/app/controllers/blogs_controller.rb
Normal file
14
spec/dummy/app/controllers/blogs_controller.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class BlogsController < ApplicationController
|
||||
|
||||
def create
|
||||
render json: {}
|
||||
end
|
||||
|
||||
def index
|
||||
render json: {}
|
||||
end
|
||||
|
||||
def show
|
||||
render json: {}
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user