mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
fix(psf-slp-indexer): sketching out new library
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user