randydev commited on
Commit
43c2f75
·
verified ·
1 Parent(s): 763fd09

Update plugins/tebak.js

Browse files
Files changed (1) hide show
  1. plugins/tebak.js +2 -1
plugins/tebak.js CHANGED
@@ -1,5 +1,6 @@
1
  import express from 'express';
2
  import { tebakgambar } from '../lib/scrapper.js';
 
3
  const TebakRoutes = express.Router();
4
 
5
  /**
@@ -11,7 +12,7 @@ const TebakRoutes = express.Router();
11
  * 200:
12
  * description: Success
13
  */
14
- TebakRoutes.get('/api/v1/tebakgambar', async (req, res) => {
15
  try {
16
  const result = await tebakgambar();
17
  if (result) {
 
1
  import express from 'express';
2
  import { tebakgambar } from '../lib/scrapper.js';
3
+ import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
4
  const TebakRoutes = express.Router();
5
 
6
  /**
 
12
  * 200:
13
  * description: Success
14
  */
15
+ TebakRoutes.get('/api/v1/tebakgambar', authenticateApiKey, apiLimiter, async (req, res) => {
16
  try {
17
  const result = await tebakgambar();
18
  if (result) {