diff --git a/src/controllers/rest-api/offer/index.js b/src/controllers/rest-api/offer/index.js index 5370c77..77fe1bb 100644 --- a/src/controllers/rest-api/offer/index.js +++ b/src/controllers/rest-api/offer/index.js @@ -48,8 +48,13 @@ class OfferRouter { ) } + // 12/3/24 CT: + // Note: The createOffer() path was used by a P2WDB webhook to generate an + // Offer from and Order. This has been deprecated and Offers are now created + // by a Timer Controller monitoring a Nostr topic. + // Define the routes and attach the controller. - this.router.post('/', _this.offerRESTController.createOffer) + // this.router.post('/', _this.offerRESTController.createOffer) // Deprecated. this.router.post('/take', _this.offerRESTController.takeOffer) this.router.get('/list/all/:page', _this.offerRESTController.listOffers) this.router.get('/list/nft/:page', _this.offerRESTController.listNftOffers) diff --git a/src/use-cases/offer/index.js b/src/use-cases/offer/index.js index 3bcb52c..d73ed0d 100644 --- a/src/use-cases/offer/index.js +++ b/src/use-cases/offer/index.js @@ -53,9 +53,7 @@ class OfferUseCases { this.loadOffers = this.loadOffers.bind(this) } - // - // This method is called by timer controller to load offers fron nostr server + // This method is called by timer controller to load offers from a Nostr topic. async createOffer (offerObj) { try { console.log('Use Case createOffer(offerObj): ', offerObj)