Update middleware/midware.js
Browse files- middleware/midware.js +1 -1
middleware/midware.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import { Database } from '../database/database.js';
|
2 |
import { rateLimit } from 'express-rate-limit';
|
3 |
import { MongoStore } from "rate-limit-mongo";
|
4 |
-
import { dbUri } from '
|
5 |
|
6 |
const authenticateApiKey = async (req, res, next) => {
|
7 |
const apiKey = req.headers['x-api-key'];
|
|
|
1 |
import { Database } from '../database/database.js';
|
2 |
import { rateLimit } from 'express-rate-limit';
|
3 |
import { MongoStore } from "rate-limit-mongo";
|
4 |
+
import { dbUri } from '../config.js';
|
5 |
|
6 |
const authenticateApiKey = async (req, res, next) => {
|
7 |
const apiKey = req.headers['x-api-key'];
|