Skip to content

Commit

Permalink
docs: update comments and readme (#12643)
Browse files Browse the repository at this point in the history
* docs: update comments and readme

* docs: update sdk comments

---------

Co-authored-by: Yiqing Zhao <[email protected]>
  • Loading branch information
yiqing-zhao and Yiqing Zhao authored Nov 4, 2024
1 parent 72ceb3c commit 2f545e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions packages/sdk/src/conversationWithCloudAdapter/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,17 @@ export class ConversationBot {
* @param logic - The additional function to handle bot context.
*
* @example
* For example, to use with Restify:
* For example, to use with Express:
* ``` typescript
* // The default/empty behavior
* server.use(restify.plugins.bodyParser());
* server.post("api/messages", conversationBot.requestHandler);
* const expressApp = express();
* expressApp.use(express.json());
* expressApp.post("/api/notification", conversationBot.requestHandler);
*
* // Or, add your own logic
* server.use(restify.plugins.bodyParser());
* server.post("api/messages", async (req, res) => {
* const expressApp = express();
* expressApp.use(express.json());
* expressApp.post("/api/notification", async (req, res) => {
* await conversationBot.requestHandler(req, res, async (context) => {
* // your-own-context-logic
* });
Expand Down
2 changes: 1 addition & 1 deletion templates/js/non-sso-tab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The following files can be customized and demonstrate an example implementation
| `src/static/scripts/teamsapp.js` | A script that calls `teamsjs` SDK to get the context of on which Microsoft 365 application your app is running. |
| `src/static/styles/custom.css` | css file for the app. |
| `src/static/views/hello.html` | html file for the app. |
| `src/app.js` | Starting a restify server. |
| `src/app.js` | Starting an `express` server. |

The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works.

Expand Down
2 changes: 1 addition & 1 deletion templates/ts/non-sso-tab/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The following files can be customized and demonstrate an example implementation
| `src/static/scripts/teamsapp.js` | A script that calls `teamsjs` SDK to get the context of on which Microsoft 365 application your app is running. |
| `src/static/styles/custom.css` | css file for the app. |
| `src/static/views/hello.html` | html file for the app. |
| `src/app.ts` | Starting a restify server. |
| `src/app.ts` | Starting an `express` server. |

The following are Teams Toolkit specific project files. You can [visit a complete guide on Github](https://github.com/OfficeDev/TeamsFx/wiki/Teams-Toolkit-Visual-Studio-Code-v5-Guide#overview) to understand how Teams Toolkit works.

Expand Down

0 comments on commit 2f545e5

Please sign in to comment.