diff --git a/src/app.ts b/src/app.ts index 9c74638..91af516 100644 --- a/src/app.ts +++ b/src/app.ts @@ -6,12 +6,14 @@ import mongoose from 'mongoose' import multer from 'multer' import path from 'path' import * as routes from './app/routes' +import {mw as RipMw} from 'request-ip' config() const init = async () => { const app = express() + app.use(RipMw()) app.use(json()) app.use(urlencoded({ extended: true