UNPKG

generator-restgoose

Version:

Modern, Lightweight, and Powerfull Rest API Code generator. Out-Of-Box NodeJS REST API Server generator built on top of Mongoose, Express, Cors, Passport, JWT and many more.

20 lines (15 loc) 365 B
const Ddos = require('ddos'); const debug = require('debug')('App:Plugin'); const API = {}; API.Config = {}; API.provider = {}; API.app = {}; API.Init = async (Config, app) => { API.app = app; API.Config = Config; if (API.Config.enabled) { app.use(new Ddos(API.Config.ddos).express); } debug('Loading Plugin : Security'); }; module.exports = API;