ccarruitero / makemehapi

Self guided workshops to teach you about hapi.
https://www.npmjs.com/package/makemehapi
Other
480 stars 107 forks source link

Directories - tests could be more complete #156

Open simongareste opened 9 years ago

simongareste commented 9 years ago

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.