From 796cf0de866ff0ef26ab7be8ae314fe5064166ca Mon Sep 17 00:00:00 2001 From: Junv Zhao Date: Tue, 20 Oct 2015 23:33:26 +0800 Subject: [PATCH] #8 Let guest to use explore menus --- app/controllers/api/v1/explore_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/api/v1/explore_controller.rb b/app/controllers/api/v1/explore_controller.rb index 5655580..6379a24 100644 --- a/app/controllers/api/v1/explore_controller.rb +++ b/app/controllers/api/v1/explore_controller.rb @@ -1,7 +1,8 @@ class Api::V1::ExploreController < Api::V1::ApplicationController - def index + skip_before_action :authenticate_user_from_token + def index render json: ExploreMenu.order(created_at: :asc).all end