mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-service.git
synced 2026-09-21 16:52:03 -07:00
Lint
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import users from './users'
|
||||
|
||||
exports = module.exports = function Controllers (app) {
|
||||
exports = module.exports = function Controllers(app) {
|
||||
app
|
||||
.use(users.routes())
|
||||
.use(users.allowedMethods())
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import Router from 'koa-router'
|
||||
import config from '../../config/config'
|
||||
|
||||
const router = new Router({ prefix: '/users' })
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
export function errorMiddleware() {
|
||||
return async (ctx, next) => {
|
||||
try {
|
||||
await next();
|
||||
await next()
|
||||
} catch (err) {
|
||||
ctx.status = err.status || 500
|
||||
ctx.body = err.message
|
||||
|
||||
Reference in New Issue
Block a user