Adding code comments

This commit is contained in:
Chris Troutner
2025-11-10 06:01:07 -08:00
parent eb57a7c773
commit 5ab5547bf3
2 changed files with 5 additions and 25 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
/*
Express server for REST2NOSTR Proxy API.
Express server for psf-bch-api REST API.
The architecture of the code follows the Clean Architecture pattern.
*/
@@ -72,6 +72,7 @@ class Server {
allowedHeaders: ['Content-Type', 'Authorization', 'X-Requested-With']
}))
// Wrap all endpoints in x402 middleware. This handles payments for the API calls.
if (x402Settings.enabled) {
const routes = buildX402Routes(this.config.apiPrefix)
const facilitatorOptions = x402Settings.facilitatorUrl