Spaces:
Building
Building
File size: 325 Bytes
97b4c9b 0626e2f 9aff024 97b4c9b 5af1179 97b4c9b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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`);
});
|