lib/roda/plugins/endpoints.rb in roda-endpoints-0.3.0 vs lib/roda/plugins/endpoints.rb in roda-endpoints-0.3.1
- old
+ new
@@ -157,9 +157,10 @@
**kwargs)
endpoint(
name: name,
entity: entity,
type: type,
+ on: name.to_s,
**kwargs
) do |endpoint|
yield endpoint if block_given?
end
end