amethyst-framework / amethyst

Amethyst is a Rails inspired web-framework for Crystal language
https://github.com/amethyst-framework
MIT License
648 stars 46 forks source link

Fix issue with static files #46

Closed drujensen closed 8 years ago

drujensen commented 8 years ago

The logic used to find static files did not properly look for the file in each of the configured directories. The comparison seemed to only check to see if a directory existed. A 404 was always being returned.

This change will look in each directory configured for the resource requested. If the resource is found, it will return it. If not, it will return a 404.