From ad708f55461060390c7058eed68a76bac58c2765 Mon Sep 17 00:00:00 2001 From: "Tada, Tadashi" Date: Fri, 30 Apr 2021 17:39:10 +0900 Subject: [PATCH] fix api does not work --- app/controllers/api/v1/users_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 1383e9e..b329b7b 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -21,6 +21,8 @@ class Api::V1::UsersController < ApplicationController # TODO :add some functionality to check if the HTTP Header is valid if !identify_user(token) redirect_to root_url + else + true end end end