Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directories - tests could be more complete #156

Open
simongareste opened this issue Jul 28, 2015 · 0 comments
Open

Directories - tests could be more complete #156

simongareste opened this issue Jul 28, 2015 · 0 comments

Comments

@simongareste
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant