We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8fbb74 + d0d8ba0 commit 857096bCopy full SHA for 857096b
src/invidious/routes/api/v1/misc.cr
@@ -4,10 +4,10 @@ module Invidious::Routes::API::V1::Misc
4
env.response.content_type = "application/json"
5
6
if !CONFIG.statistics_enabled
7
- return error_json(400, "Statistics are not enabled.")
+ return {"software" => SOFTWARE}.to_json
8
+ else
9
+ return Invidious::Jobs::StatisticsRefreshJob::STATISTICS.to_json
10
end
-
- Invidious::Jobs::StatisticsRefreshJob::STATISTICS.to_json
11
12
13
# APIv1 currently uses the same logic for both
0 commit comments