404 error on the handling exercise
Closed this issue · 5 comments
Deleted user commented
Hello,
Im now trying to make the handling exercise
I have this :
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({
host: 'localhost',
port: Number(process.argv[2] || 8080)
});
server.route({
method: 'GET',
path: '/',
handler: {
file: 'index.html'
}
});
server.start();
but as soon as I do makemehapi run I see a 404 error
Roelof
arb commented
Do you have an "index.html" file at the route of the project?
Deleted user commented
No, I thought that that file was provided by the lessons
lloydbenson commented
Do you think https://github.com/hapijs/makemehapi/blob/master/exercises/handling/problem.md needs more clarity? If so feel free to PR will suggestions.
Deleted user commented
I will think about what can be improved.
lloydbenson commented
Closing this as it is resolved. Feel free to open a PR if you have a suggestion on making the instructions more clear.