Description:
Currently, when a request is made to a path (e.g., /index), the server prioritizes serving filePath/index.html if filePath is a directory. However, if both filePath.html and filePath/ exist, the expected behavior is to serve filePath.html first before checking inside the directory.
Expected Behavior:
If filePath.html exists, serve it first.
If filePath.html does not exist but filePath/ is a directory, serve filePath/index.html.
If neither exists, return a 404 Not Found.