Checks if we should redirect based on GEO-IP

Since
  • 1.0.0
Author
  • Glenn de Haan

Example

const {Runtime, Server} = require('@neobeach/core');
const geoip = require('@neobeach/middlewares-geoip');

const server = new Server();

Runtime(() => {
     server.loadMiddlewares([geoip({'nl': 'nl-NL'}, 'nl', 301, false)]);
     server.run();
});