From 3a35ebec86df2d75927f542437901fccad4ad7c0 Mon Sep 17 00:00:00 2001 From: poma Date: Thu, 18 Jul 2019 21:15:59 +0300 Subject: [PATCH] code style --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 06287e9..f948c70 100644 --- a/index.js +++ b/index.js @@ -5,10 +5,10 @@ const express = require('express') const app = express() app.use(express.json()) app.use(function(req, res, next) { - res.header("Access-Control-Allow-Origin", "*"); // update to match the domain you will make the request from - res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); - next(); -}); + res.header('Access-Control-Allow-Origin', '*') // update to match the domain you will make the request from + res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept') + next() +}) const { netId, rpcUrl, privateKey, mixerAddress, defaultGasPrice } = require('./config') const { fetchGasPrice, isValidProof } = require('./utils')