fix(psf-slp-indexer): sketching out new library

This commit is contained in:
Chris Troutner
2022-01-08 16:41:01 -08:00
parent cbbb7f76e4
commit 6eba44641f
2 changed files with 25 additions and 5 deletions
+3
View File
@@ -200,6 +200,9 @@ app.use(`/${v5prefix}/` + 'ninsight', ninsight.router)
app.use(`/${v5prefix}/` + 'bcash/slp', bcashSLP.router)
// Daniel:
// app.use(`/${v5prefix}/` + 'psfslp', psfSlp.router)
// catch 404 and forward to error handler
app.use((req, res, next) => {
const err = {
+22 -5
View File
@@ -3,10 +3,27 @@
*/
// Public npm libraries
// const express = require('express')
// const router = express.Router()
// const axios = require('axios')
//
// // Local libraries
const express = require('express')
const router = express.Router()
const axios = require('axios')
// Local libraries
// const wlogger = require('../../../util/winston-logging')
// const config = require('../../../../config')
class PsfSlpIndexer {
constructor () {
// Encapsulate dependencies
this.axios = axios
this.router = router
// Define routes
// this.router.get('/', this.root)
// this.router.get('/status', this.getStatus)
// this.router.post('/address', this.getAddress)
// this.router.post('/txid', this.getTxid)
// this.routner.post('/token', this.getTokenStats)
}
}
module.exports = PsfSlpIndexer