acidiney / HttpEnrichment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HttpEnrichment

This project is a study case to inject headers to a request, This working as middleware to set a phonenumber on request.

Objective

Knows who access the site if his use a mobile

Using

A mobile operator know how set this information in request, but in my case, you need to set number when you start the node application.

Requires

  • PhoneCode: Is Phonenumber of user that wants to access the route
  • BaseUrl: Will redirect to this route if number is valid

Note

This middleware allows mobile companies manage subscriptions, from a website and knows if this number has a subscription or cant access this site.

About


Languages

Language:JavaScript 59.3%Language:TypeScript 40.7%