Skip to content

Commit

Permalink
Remove express-rate-limit dependency and related middleware from card…
Browse files Browse the repository at this point in the history
… and echo bot samples
  • Loading branch information
Rido committed Mar 6, 2025
1 parent 10764a0 commit 76987dd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions samples/basic/cards/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
},
"dependencies": {
"@microsoft/agents-bot-hosting": "0.1.25-gcaee57b821",
"express": "^5.0.1",
"express-rate-limit": "^7.5.0"
"express": "^5.0.1"
},
"devDependencies": {
"@microsoft/teams-app-test-tool": "^0.2.6",
Expand Down
3 changes: 0 additions & 3 deletions samples/basic/cards/nodejs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT License.

import express, { Response } from 'express'
import rateLimit from 'express-rate-limit'
import { Request, CloudAdapter, authorizeJWT, AuthConfiguration, loadAuthConfigFromEnv } from '@microsoft/agents-bot-hosting'
import { CardFactoryBot } from './bot'

Expand All @@ -12,8 +11,6 @@ const adapter = new CloudAdapter(authConfig)
const myBot = new CardFactoryBot()

const app = express()

app.use(rateLimit({ validate: { xForwardedForHeader: false } }))
app.use(express.json())
app.use(authorizeJWT(authConfig))

Expand Down
3 changes: 1 addition & 2 deletions samples/basic/echo-bot/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
},
"dependencies": {
"@microsoft/agents-bot-hosting": "0.1.25-gcaee57b821",
"express": "^5.0.1",
"express-rate-limit": "^7.5.0"
"express": "^5.0.1"
},
"devDependencies": {
"@microsoft/teams-app-test-tool": "^0.2.6",
Expand Down
3 changes: 0 additions & 3 deletions samples/basic/echo-bot/nodejs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT License.

import express, { Response } from 'express'
import rateLimit from 'express-rate-limit'
import { Request, CloudAdapter, authorizeJWT, AuthConfiguration, loadAuthConfigFromEnv } from '@microsoft/agents-bot-hosting'
import { EchoBot } from './bot'

Expand All @@ -12,8 +11,6 @@ const adapter = new CloudAdapter(authConfig)
const myBot = new EchoBot()

const app = express()

app.use(rateLimit({ validate: { xForwardedForHeader: false } }))
app.use(express.json())
app.use(authorizeJWT(authConfig))

Expand Down

0 comments on commit 76987dd

Please sign in to comment.