Extract /watch route from main file

This commit is contained in:
Matthew McGarvey committed 2020-11-02 18:06:06 -06:00
1 parent aa2ae37365
commit 2cded8dcac
4 files changed
+190 -189

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
module Invidious::Routing
macro get(path, controller)
get {{ path }} do |env|
controller_instance = {{ controller }}.new(config)
controller_instance = {{ controller }}.new(config, logger)
controller_instance.handle(env)
end
end