mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Merge pull request #2910 from MathiusD/expose-version
Expose version by default on api/v1/stats
This commit is contained in:
commit
857096ba5f
1 changed files with 3 additions and 3 deletions
|
@ -4,10 +4,10 @@ module Invidious::Routes::API::V1::Misc
|
|||
env.response.content_type = "application/json"
|
||||
|
||||
if !CONFIG.statistics_enabled
|
||||
return error_json(400, "Statistics are not enabled.")
|
||||
return {"software" => SOFTWARE}.to_json
|
||||
else
|
||||
return Invidious::Jobs::StatisticsRefreshJob::STATISTICS.to_json
|
||||
end
|
||||
|
||||
Invidious::Jobs::StatisticsRefreshJob::STATISTICS.to_json
|
||||
end
|
||||
|
||||
# APIv1 currently uses the same logic for both
|
||||
|
|
Loading…
Reference in a new issue