Extract /watch route from main file

This commit is contained in:
Matthew McGarvey
2020-11-02 18:06:06 -06:00
parent aa2ae37365
commit 2cded8dcac
4 changed files with 190 additions and 189 deletions

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