ngoctuanai commited on
Commit
e987042
1 Parent(s): 6ac828b

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +4 -2
server.js CHANGED
@@ -19,8 +19,10 @@ app.use('/api', function(req, res, next) {
19
  })(req, res, next);
20
  });
21
 
 
 
22
  app.get("/", (req, res) => {
23
- res.send(`This is your OpenAI Reverse Proxy URL: ${baseUrl}`);
24
  });
25
 
26
  function getExternalUrl(spaceId) {
@@ -34,4 +36,4 @@ function getExternalUrl(spaceId) {
34
 
35
  app.listen(port, () => {
36
  console.log(`Reverse proxy server running on ${baseUrl}`);
37
- });
 
19
  })(req, res, next);
20
  });
21
 
22
+ app.use(express.static('public'));
23
+
24
  app.get("/", (req, res) => {
25
+ res.sendFile(path.join(__dirname, 'public', 'index.html'));
26
  });
27
 
28
  function getExternalUrl(spaceId) {
 
36
 
37
  app.listen(port, () => {
38
  console.log(`Reverse proxy server running on ${baseUrl}`);
39
+ });