Skip to content

Commit 2c132bc

Browse files
feat: update api path and dependencies
1 parent 451d64f commit 2c132bc

File tree

6 files changed

+781
-169
lines changed

6 files changed

+781
-169
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if (process.env.SPEECH_TO_TEXT_IAM_APIKEY && process.env.SPEECH_TO_TEXT_IAM_APIK
4949
app.get('/', (req, res) => res.render('index'));
5050

5151
// Get credentials using your credentials
52-
app.get('/api/credentials', (req, res, next) => {
52+
app.get('/api/v1/credentials', (req, res, next) => {
5353
tokenManager.getToken((err, token) => {
5454
if (err) {
5555
next(err);

config/security.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = (app) => {
2828
app.use(helmet());
2929

3030
// 5. rate limiting.
31-
app.use('/api/', rateLimit({
31+
app.use('/api/v1/', rateLimit({
3232
windowMs: 30 * 1000, // 30 seconds
3333
delayMs: 0,
3434
max: 3,

0 commit comments

Comments
 (0)