Skip to content

Commit

Permalink
change key_api
Browse files Browse the repository at this point in the history
  • Loading branch information
alijm0806 committed Aug 15, 2022
1 parent 2b6fad0 commit 7b68e44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/articles_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class ArticlesController < ApplicationController
def index
response = HTTP.get("https://newsapi.org/v2/everything?q=#{params[:search]}&from=2022-07-15&sortBy=publishedAt&apiKey=#{Rails.application.credentials.key_api}&language=en")
response = HTTP.get("https://newsapi.org/v2/everything?q=#{params[:search]}&from=2022-07-15&sortBy=publishedAt&apiKey=#{Rails.application.credentials.news_key_api}&language=en")
render json: response.as_json
end
end
2 changes: 1 addition & 1 deletion config/credentials.yml.enc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
h6q63PxrtAZyBY9LvheVBXv5DBV0L1p28anhUqd9Bve7iX+xHpyShI0YVtcgds5OxRmB0ZFTh0WdhGCN9r0rPxkmVZ/hDKBgewolfEYR+NY+seGcgQMLprQlMY5UO1SUJeTiduvOmRraWhf0yhnhUQYkeiFcvZy9gEW/A8a/UI0rmCefX0WmvbuDUbLlpZcR7i687nvlK8+NfNbvaiyH4FEEumR4FoA6Bi6qWb7zssDqo7nPsiiByrGfpDY0A7sJVd8kZutdusforPn09dDHn+W0aZ1YLf4eMkkHwe8ijQr8Ucq3Rm3CTEFI8H9ci33q2qEXdZ8Fx5petmlQ2iA9Gla3F0jZpXJmhhdC2QwFWet3IVdr0GvZcNs7NZtCt4Z/LzIcVu8HJM1sIAJu95bkGhQCe5JNqfGTMZQE8INsu5tH2bL6vcrZDnTu8e02Yly+PLuj0J6eHQkazvC8ReND--oyEP0VEOeebws0Jc--kqh95vmJrjWyQcpkDVsBiA==
GFM/Bz9gWucDF9z+7KCHQiVnIXgX8PP067Uw89MdxKo79e6qfNixp0zpB/NiQTjJQIKayQsSAd8o8wnBoTFHFckCsouG7u/sK1Yn20kScTFtGhWMx6xbjtCJFnGA/SkbtE60VHy8iUACZL52X/d7B0iKe0YTIIgsXVw4gn2wgjl+1G7lzrleL9QDNsD7s0xSSlfOlsLwdyteyCveuSOQYuaFZT5OhddL5gaYsFm7PdK6xoNNNJDIeLxO+5ZVHIeDQHybMu+yWd2ELehQVo3YXqsALXXuKTkdX5ODyNbh+p4fdiGkQ0kpFziou821hZ+E4G1UTXLLyW03ZLhISEN+ulAm29+2p3f+LUI23LtFW7LUuh8Xrd3DhiT+8MBvLy1TvFF1et69+pT4aG7OC+swxMMyKnNRTzIPevjKRC/TUn3+K14nT96iSNnGdScSIDgR/NsJLeEFjFQ5qMxjulPTED8Nxns=--GMG6waW0STCVytzM--9oAffasqYhiLDA1V2h033A==

0 comments on commit 7b68e44

Please sign in to comment.