mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-09-22 05:04:36 -04:00
code style
This commit is contained in:
parent
ca3438c9b0
commit
3a35ebec86
1 changed files with 4 additions and 4 deletions
8
index.js
8
index.js
|
@ -5,10 +5,10 @@ const express = require('express')
|
||||||
const app = express()
|
const app = express()
|
||||||
app.use(express.json())
|
app.use(express.json())
|
||||||
app.use(function(req, res, next) {
|
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-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");
|
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept')
|
||||||
next();
|
next()
|
||||||
});
|
})
|
||||||
|
|
||||||
const { netId, rpcUrl, privateKey, mixerAddress, defaultGasPrice } = require('./config')
|
const { netId, rpcUrl, privateKey, mixerAddress, defaultGasPrice } = require('./config')
|
||||||
const { fetchGasPrice, isValidProof } = require('./utils')
|
const { fetchGasPrice, isValidProof } = require('./utils')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue