@microsoft/teamsfx 3.0.0-alpha.ee7099d29.0 → 3.0.0-beta.2024111302.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3533,15 +3533,17 @@ class ConversationBot {
3533
3533
  * @param logic - The additional function to handle bot context.
3534
3534
  *
3535
3535
  * @example
3536
- * For example, to use with Restify:
3536
+ * For example, to use with Express:
3537
3537
  * ``` typescript
3538
3538
  * // The default/empty behavior
3539
- * server.use(restify.plugins.bodyParser());
3540
- * server.post("api/messages", conversationBot.requestHandler);
3539
+ * const expressApp = express();
3540
+ * expressApp.use(express.json());
3541
+ * expressApp.post("/api/notification", conversationBot.requestHandler);
3541
3542
  *
3542
3543
  * // Or, add your own logic
3543
- * server.use(restify.plugins.bodyParser());
3544
- * server.post("api/messages", async (req, res) => {
3544
+ * const expressApp = express();
3545
+ * expressApp.use(express.json());
3546
+ * expressApp.post("/api/notification", async (req, res) => {
3545
3547
  * await conversationBot.requestHandler(req, res, async (context) => {
3546
3548
  * // your-own-context-logic
3547
3549
  * });