From 53d1e245aa86d96e3cf48d9182b06eb3643b770e Mon Sep 17 00:00:00 2001 From: Giorgi Kavrelishvili Date: Mon, 23 Dec 2024 17:30:12 +0400 Subject: [PATCH] Update dsl.cr --- src/grip/macros/dsl.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grip/macros/dsl.cr b/src/grip/macros/dsl.cr index 5b574a7..80769b3 100644 --- a/src/grip/macros/dsl.cr +++ b/src/grip/macros/dsl.cr @@ -74,7 +74,7 @@ module Grip end macro ws(route, resource, **kwargs) - @websocket_handler.add_route("", "#{@scopes.join()}#{{{route}}}", {{ resource }}.new, @valves.clone(), nil) + @websocket_handler.add_route("", "#{@scopes.join()}#{{{route}}}", {{ resource }}.instance, @valves.clone(), nil) end end end