diff options
| author | mo khan <mo@mokhan.ca> | 2016-11-25 20:58:37 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2016-11-25 20:58:37 -0700 |
| commit | 515dafbcf7bb92d5dc8b61be2ff9002b8c0c892c (patch) | |
| tree | f15f5b0f008d2d90109557470d6c9a0892ae78c1 /app/controllers/api/controller.rb | |
| parent | 725bcc3f63b41835824f83f38943ac6a80800b8f (diff) | |
create a sessions controller to return a JWT
Diffstat (limited to 'app/controllers/api/controller.rb')
| -rw-r--r-- | app/controllers/api/controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/api/controller.rb b/app/controllers/api/controller.rb new file mode 100644 index 0000000..8776dd2 --- /dev/null +++ b/app/controllers/api/controller.rb @@ -0,0 +1,5 @@ +class Api::Controller < ActionController::Base + # Prevent CSRF attacks by raising an exception. + # For APIs, you may want to use :null_session instead. + protect_from_forgery with: :exception +end |
