mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-30 10:42:53 +00:00
Collecting num of requests and handling time from each Kemal route
This commit is contained in:
committed by
Mateusz Bączek
parent
4d410d124f
commit
27dd94f60d
@@ -311,6 +311,7 @@ module Invidious::Routing
|
||||
# Misc
|
||||
get "/api/v1/stats", {{namespace}}::Misc, :stats
|
||||
if CONFIG.statistics_enabled
|
||||
add_handler Metrics::METRICS_COLLECTOR
|
||||
get "/api/v1/metrics", {{namespace}}::Misc, :metrics
|
||||
end
|
||||
get "/api/v1/playlists/:plid", {{namespace}}::Misc, :get_playlist
|
||||
|
||||
Reference in New Issue
Block a user