From 27e1b7da51f9da2eb5473fdb9b0d618334edb51b Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 5 Jun 2021 20:45:44 +0200 Subject: Added linting to server package & replaced some singlequotes with doublequotes --- packages/server/src/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/server/src') 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", -- cgit v1.2.3-18-g5258