diff options
author | HampusM <hampus@hampusmat.com> | 2021-06-05 20:45:44 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-06-05 20:45:44 +0200 |
commit | 27e1b7da51f9da2eb5473fdb9b0d618334edb51b (patch) | |
tree | 8055caad03f2884d21b169c10f41fef4b1e12d01 /packages/server/src/app.js | |
parent | 2836ea103cc8e25dce920782b6e31c76f2ed5ec6 (diff) |
Added linting to server package & replaced some singlequotes with doublequotes
Diffstat (limited to 'packages/server/src/app.js')
-rw-r--r-- | packages/server/src/app.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/server/src/app.js b/packages/server/src/app.js index 79ece82..a106f7d 100644 --- a/packages/server/src/app.js +++ b/packages/server/src/app.js @@ -1,12 +1,12 @@ const fastify = require("fastify")(); const api = require("./api/v1"); -const yaml = require('js-yaml'); -const fs = require('fs'); +const yaml = require("js-yaml"); +const fs = require("fs"); const { exit } = require("process"); const git = require("./api/git"); const path = require("path"); -const settings = yaml.load(fs.readFileSync(__dirname + "/../../../settings.yml", 'utf8')); +const settings = yaml.load(fs.readFileSync(__dirname + "/../../../settings.yml", "utf8")); const settings_keys = Object.keys(settings); const mandatory_settings = [ "host", "port", "dev_port", "title", "about", "base_dir", "production" ]; @@ -45,7 +45,7 @@ fastify.setNotFoundHandler({ }); if(settings.production) { - fastify.register(require('fastify-static'), { root: path.join(__dirname, '/../../../dist') }); + fastify.register(require("fastify-static"), { root: path.join(__dirname, "/../../../dist") }); fastify.route({ method: "GET", |