diff --git a/src/invidious/routing.cr b/src/invidious/routing.cr index 27c3d199..5ee5ed58 100644 --- a/src/invidious/routing.cr +++ b/src/invidious/routing.cr @@ -312,6 +312,10 @@ module Invidious::Routing get "/api/v1/stats", {{namespace}}::Misc, :stats if CONFIG.statistics_enabled get "/api/v1/metrics", {{namespace}}::Misc, :metrics + else + get "/api/v1/metrics" do |env| + env.response.status_code = 204 + end end get "/api/v1/playlists/:plid", {{namespace}}::Misc, :get_playlist get "/api/v1/auth/playlists/:plid", {{namespace}}::Misc, :get_playlist