Class: Uistiti::Lookbook::DummyController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Uistiti::Lookbook::DummyController
- Defined in:
- app/controllers/uistiti/lookbook/dummy_controller.rb
Instance Method Summary collapse
-
#error ⇒ Object
PUT /lookbook/dummy/error GET /lookbook/dummy/error.
-
#success ⇒ Object
PUT /lookbook/dummy/success GET /lookbook/dummy/success.
Instance Method Details
#error ⇒ Object
PUT /lookbook/dummy/error GET /lookbook/dummy/error
13 14 15 16 |
# File 'app/controllers/uistiti/lookbook/dummy_controller.rb', line 13 def error puts params render status: 400, json: {:error => 'Bad request'}.to_json end |
#success ⇒ Object
PUT /lookbook/dummy/success GET /lookbook/dummy/success
7 8 9 |
# File 'app/controllers/uistiti/lookbook/dummy_controller.rb', line 7 def success render status: 200, json: {message: 'OK'}.to_json end |