randydev commited on
Commit
7076e64
·
verified ·
1 Parent(s): 595cdd3

Update plugins/carbon.js

Browse files
Files changed (1) hide show
  1. plugins/carbon.js +2 -1
plugins/carbon.js CHANGED
@@ -3,6 +3,7 @@ import fetch from "node-fetch";
3
  import express from 'express';
4
  import { Readable } from "stream";
5
  import sharp from "sharp";
 
6
 
7
  const CarbonRoutes = express.Router();
8
 
@@ -69,7 +70,7 @@ async function MakerCarbon(args) {
69
  * 500:
70
  * description: Internal server error.
71
  */
72
- CarbonRoutes.get("/api/v1/maker/carbon", async (req, res) => {
73
  try {
74
  const code = req.query.code;
75
  if (!code) {
 
3
  import express from 'express';
4
  import { Readable } from "stream";
5
  import sharp from "sharp";
6
+ import { authenticateApiKey, apiLimiter } from '../middleware/midware.js';
7
 
8
  const CarbonRoutes = express.Router();
9
 
 
70
  * 500:
71
  * description: Internal server error.
72
  */
73
+ CarbonRoutes.get("/api/v1/maker/carbon", authenticateApiKey, apiLimiter, async (req, res) => {
74
  try {
75
  const code = req.query.code;
76
  if (!code) {