grpnode / server.js
waxihiv547's picture
Update server.js
0626e2f verified
raw
history blame contribute delete
325 Bytes
const express = require('express');
const proxy = require('express-http-proxy');
const app = express();
app.use('/', proxy(`https://generativelanguage.googleapis.com`, {
https: true,
proxyReqOptDecorator: (proxyReqOpts, srcReq) => {
return proxyReqOpts;
},
}));
app.listen(7860, () => {
console.log(`YES`);
});