Skip to content

Commit

Permalink
Update dsl.cr
Browse files Browse the repository at this point in the history
  • Loading branch information
grkek authored Dec 23, 2024
1 parent 441fc1e commit 53d1e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grip/macros/dsl.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53d1e24

Please sign in to comment.