mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 01:02:05 -07:00
Commented out swagger stuff stopping server from starting
This commit is contained in:
+3
-2
@@ -23,12 +23,13 @@ const BitcoinCashZMQDecoder = require("bitcoincash-zmq-decoder")
|
||||
const zmq = require("zeromq")
|
||||
|
||||
const sock = zmq.socket("sub")
|
||||
|
||||
/*
|
||||
const swStats = require("swagger-stats")
|
||||
let apiSpec
|
||||
if (process.env.NETWORK === "mainnet")
|
||||
apiSpec = require("./public/bitcoin-com-mainnet-rest-v2.json")
|
||||
else apiSpec = require("./public/bitcoin-com-testnet-rest-v2.json")
|
||||
*/
|
||||
|
||||
// v2
|
||||
const indexV2 = require("./routes/v2/index")
|
||||
@@ -51,7 +52,7 @@ const app = express()
|
||||
|
||||
app.locals.env = process.env
|
||||
|
||||
app.use(swStats.getMiddleware({ swaggerSpec: apiSpec }))
|
||||
//app.use(swStats.getMiddleware({ swaggerSpec: apiSpec }))
|
||||
|
||||
app.use(helmet())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user