mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-17 10:28:51 +00:00
Provide rough draft of better project organization
This commit is contained in:
8
src/invidious/routing.cr
Normal file
8
src/invidious/routing.cr
Normal 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
|
||||
Reference in New Issue
Block a user