mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00: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
|
|
@ -4,8 +4,8 @@ class ContextsController < ApplicationController
|
|||
|
||||
before_action :init, :except => [:index, :create, :destroy, :order]
|
||||
before_action :set_context_from_params, :only => [:update, :destroy]
|
||||
skip_before_action :login_required, :only => [:index]
|
||||
prepend_before_action :login_or_feed_token_required, :only => [:index]
|
||||
skip_before_action :login_required, :only => [:index, :show]
|
||||
prepend_before_action :login_or_feed_token_required, :only => [:index, :show]
|
||||
|
||||
def index
|
||||
@all_contexts = current_user.contexts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue