diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..efa2ce21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 + +[*.md] +indent_style = space +indent_size = 4 + +[*.{js,json}] +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true +max_line_length = 120 + +[package.json] +insert_final_newline = false diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..44917357 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +*.js eol=lf +*.json eol=lf +*.sh eol=lf +*.md eol=lf +*.conf eol=lf diff --git a/lib/index.js b/lib/index.js index 600d333d..df5fda9d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -190,7 +190,7 @@ exports.register = function (plugin, options, next) { if (settings.debug === true) { pluginWithDependencies.route([{ method: 'GET', - path: settings.documentationPath + Path.sep + 'debug', + path: Path.join(settings.documentationPath, Path.sep, 'debug').split(Path.sep).join('/'), config: { auth: settings.auth },