mirror of
https://github.com/iv-org/invidious.git
synced 2025-01-10 11:30:34 +05:30
fix(search.cr): http status code
This commit is contained in:
parent
5fa293541b
commit
3abf21625c
@ -7,7 +7,7 @@ module Invidious::Routes::API::V1::Search
|
|||||||
|
|
||||||
if !CONFIG.search_enabled
|
if !CONFIG.search_enabled
|
||||||
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
|
error_message = {"error" => "Administrator has disabled this endpoint."}.to_json
|
||||||
haltf env, 400, error_message
|
haltf env, 403, error_message
|
||||||
end
|
end
|
||||||
|
|
||||||
query = Invidious::Search::Query.new(env.params.query, :regular, region)
|
query = Invidious::Search::Query.new(env.params.query, :regular, region)
|
||||||
|
Loading…
Reference in New Issue
Block a user