only handle file resource when reading routes; other resources cannot be handled