diff --git a/src/images/404.png b/images/404.png similarity index 100% rename from src/images/404.png rename to images/404.png diff --git a/src/kemal.cr b/src/kemal.cr index 808b770..41dd0b3 100644 --- a/src/kemal.cr +++ b/src/kemal.cr @@ -41,6 +41,8 @@ module Kemal file_path = File.expand_path("lib/kemal/images/#{image}", Dir.current) if File.exists? file_path send_file env, file_path + else + halt env, 404 end end