fixed routing for / empty path

added additional routing cases for public folder