Skip to content

Instantly share code, notes, and snippets.

@MaryKuz
Created March 28, 2019 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaryKuz/88769c26c1db9adfd9c79c9bc2a54cd3 to your computer and use it in GitHub Desktop.
Save MaryKuz/88769c26c1db9adfd9c79c9bc2a54cd3 to your computer and use it in GitHub Desktop.
Create the singleton resource api/session
Rails.application.routes.draw do
namespace :api do
...
resource :session, only: [:create, :destroy]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment