express-api-gateway
v0.6.0
Published
Simples api gateway usando expressjs
Downloads
10
Maintainers
Readme
Express-Api-Gateway
Simples iniciativa para facilitar a criação de api gateway utilizando do framework express.
Contribua, caso ache legal esta lib.
Dependência
- express
- express-http-proxy
Exemplo de uso
const app = require("express")();
const ApiGateway = require("express-api-gateway");
const api = new ApiGateway(app);
api.setPath("/google").setUrl("https://www.google.com.br").builder();
api.setPath("/uol").setUrl("https://www.uol.com.br").builder();
app.listen(5000);