Browse Source

Throw a 404 if we cannot find the requested node

tags/0.3.0^2
Bèr Kessels 2 years ago
parent
commit
469cb241e0
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      lib/app.rb

+ 5
- 1
lib/app.rb View File

@@ -97,7 +97,11 @@ module Hours

get %r{/nodes/(?<node_id>#{UUID_REGEX})} do
@node = Hours::Projections::Node::Query.handle(params[:node_id])
erb :node
if @node
erb :node
else
404
end
end
end
end

Loading…
Cancel
Save