Commenting out POST /offer/ webhook endpoint

This commit is contained in:
Chris Troutner
2024-12-03 09:28:52 -08:00
parent 0a8bb52241
commit b3ba7f03e4
2 changed files with 7 additions and 4 deletions
+6 -1
View File
@@ -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)
+1 -3
View File
@@ -53,9 +53,7 @@ class OfferUseCases {
this.loadOffers = this.loadOffers.bind(this)
}
// <This method is called by the POST /offer REST API controller, which is
// triggered by a P2WDB webhook. ( DEPRECATED)>
// 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)