add formData support

This commit is contained in:
ali.q
2017-04-15 01:34:05 +04:30
committed by ali
parent 25d8adaf8b
commit 182ee093f4
12 changed files with 154 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
TestApp::Application.routes.draw do
resources :blogs, defaults: { :format => :json }
put '/blogs/:id/upload', to: 'blogs#upload'
mount Rswag::Api::Engine => 'api-docs'
mount Rswag::Ui::Engine => 'api-docs'