invidious-experimenting/src/invidious/routing.cr

9 lines
197 B
Crystal
Raw Normal View History

module Invidious::Routing
macro get(path, controller)
get {{ path }} do |env|
controller_instance = {{ controller }}.new(config)
controller_instance.handle(env)
end
end
end