diff --git a/package.json b/package.json index 0f458ca..b315ee0 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ "author": "Peer-to-peer Privacy Systems Research, LLC", "license": "Open BSV License", "dependencies": { + "@bsv/auth-express-middleware": "^1.0.13", + "@bsv/payment-express-middleware": "^1.0.3", "@bsv/sdk": "^1.3.30", "@bsv/wallet-toolbox": "^1.1.60", "body-parser": "^1.20.0", diff --git a/src/CertifierServer.ts b/src/CertifierServer.ts index 96a6b2c..4a16e7b 100644 --- a/src/CertifierServer.ts +++ b/src/CertifierServer.ts @@ -42,7 +42,7 @@ export class CertifierServer { this.app.use(express.json({ limit: '30mb' })) // This allows the API to be used everywhere when CORS is enforced - this.app.use((req, res, next) => { + this.app.use((req: Request, res: Response, next) => { res.header('Access-Control-Allow-Origin', '*') res.header('Access-Control-Allow-Headers', '*') res.header('Access-Control-Allow-Methods', '*')