Closed marcopiraccini closed 4 years ago
As noted on Hapijs style guide
Always use relative paths But in makemehapi helper says to use absolute path many times. Is it ok?
Hi @marcopiraccini, thanks for use the workshop.
The solution have a relative path in the route because has set the files to be relative to the directory in the server routes options https://github.com/ccarruitero/makemehapi/blob/master/exercises/handling/solution/solution.js#L10
I updated the problem to mention that in https://github.com/ccarruitero/makemehapi/commit/f8bae05cb69c11fb255ffb07a848fb3890e934c4#diff-79fe0e5db0e9285a2b8095a63e7c36d6
Feel free to open other issue if you have any question.
The description says:
However the solution is ok also with:
So, it seems that handler.file can be also relative. Should we spceify that in the exercise description?