Provide rough draft of better project organization

This commit is contained in:
Matthew McGarvey
2020-10-05 23:41:18 -05:00
parent 1978c3d3bd
commit 85c212aee3
9 changed files with 115 additions and 43 deletions

8
src/invidious/routing.cr Normal file
View File

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