stub controller to help with future testing

This commit is contained in:
Jamie Macey 2020-10-12 22:47:31 -07:00
parent 8d673068af
commit b37c7905cd
5 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,2 @@
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.

View File

@ -0,0 +1,4 @@
/*
Place all the styles related to the matching controller here.
They will automatically be included in application.css.
*/

View File

@ -0,0 +1,9 @@
class StubsController < ApplicationController
def index
render plain: 'OK'
end
def show
render plain: 'OK'
end
end

View File

@ -0,0 +1,2 @@
module StubsHelper
end

View File

@ -9,6 +9,8 @@ TestApp::Application.routes.draw do
post 'auth-tests/api-key', to: 'auth_tests#api_key'
post 'auth-tests/basic-and-api-key', to: 'auth_tests#basic_and_api_key'
resources :stubs
mount Rswag::Api::Engine => 'api-docs'
mount Rswag::Ui::Engine => 'api-docs'
end