mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
#2203: Allow using REST API with token
This commit is contained in:
parent
ec59f10af8
commit
d3ba80c84e
4 changed files with 7 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
class TodosController < ApplicationController
|
||||
|
||||
skip_before_action :login_required, :only => [:index, :tag]
|
||||
prepend_before_action :login_or_feed_token_required, :only => [:index, :tag]
|
||||
skip_before_action :login_required, :only => [:index, :tag, :list_deferred, :show, :list_hidden, :done]
|
||||
prepend_before_action :login_or_feed_token_required, :only => [:index, :tag, :list_deferred, :show, :list_hidden, :done]
|
||||
append_before_action :find_and_activate_ready, :only => [:index, :list_deferred]
|
||||
|
||||
protect_from_forgery :except => :check_deferred
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue