ccarruitero / ccarruitero/makemehapi

Directories - tests could be more complete

Open
#156 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
480
Forks
104
PR merge metrics
No merged PRs in 30d

Description

The Directories exercise can be solved using

```
server.route({
method: 'GET',
path: '/foo/bar/baz/file.html',
handler: function(request, reply) {
reply.file('public/file.html');
}
});
```

However, the aim of the exercise is to check if a file in /foo/bar/baz/ will be redirected to its equivalent in /public. Another test should be added, with a different file name.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.