Skip to content

Commit d84a15e

Browse files
author
Matt Swanson
committed
Turn on authentication for Fever API endpoint.
1 parent 858076f commit d84a15e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fever_api.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class FeverAPI < Sinatra::Base
1313
ActiveRecord::Base.include_root_in_json = false
1414
end
1515

16-
# before do
17-
# halt 403 unless authenticated?(params[:api_key])
18-
# end
16+
before do
17+
halt 403 unless authenticated?(params[:api_key])
18+
end
1919

2020
def authenticated?(api_key)
2121
user = User.first

0 commit comments

Comments
 (0)