mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-service.git
synced 2026-09-21 16:52:03 -07:00
Add koa logger
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import Koa from 'koa'
|
||||
import bodyParser from 'koa-bodyparser'
|
||||
import convert from 'koa-convert'
|
||||
import logger from 'koa-logger'
|
||||
|
||||
import config from './config'
|
||||
import { errorMiddleware } from '../src/utils'
|
||||
|
||||
const app = new Koa()
|
||||
|
||||
app.use(convert(logger()))
|
||||
app.use(errorMiddleware())
|
||||
app.use(convert(bodyParser()))
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
"koa": "^2.0.0-alpha.3",
|
||||
"koa-bodyparser": "^2.0.1",
|
||||
"koa-convert": "^1.2.0",
|
||||
"koa-logger": "^1.3.0",
|
||||
"koa-router": "^7.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user