feat(middleware): don't handle directory