mirror of
https://github.com/Permissionless-Software-Foundation/x402-base-facilitator.git
synced 2026-09-21 16:52:01 -07:00
Lint
This commit is contained in:
@@ -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