Correctly respond with 404
This commit is contained in:
@@ -7,6 +7,7 @@ module Adamantium
|
||||
def handle(req, res)
|
||||
slug = req.params[:slug]
|
||||
|
||||
res.status = File.exist?("app/content/pages/#{slug}.md") ? 200 : 404
|
||||
res.render show, slug: slug
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user