- Add
devise
anddevise-api
toGemfile
bundle install
rails g devise:install && rails g devise user
rails g devise_api:install
rails active_storage:install
rails g scaffold image image_file
- Move
ImagesController
toapp/controllers/api/latest
- Update
routes.rb
- Update
cors.rb
rails db:migrate