DeFactOfficial commited on
Commit
f84190a
1 Parent(s): 996c544

Update api.js

Browse files
Files changed (1) hide show
  1. api.js +3 -2
api.js CHANGED
@@ -202,8 +202,9 @@ app.post('api/generate/speech', async (req, res) =>{
202
  })
203
 
204
 
205
- app.get('/api/hello', async(req, res) => {
206
- await res.status(200).send({"hello": "world"}, {headers: {"Content-Type":"application/json"}})
 
207
  res.end()
208
  })
209
  // This is normal TTS: specify voice, text, model. Voices are from openai, use those names or the aliases in lookup table
 
202
  })
203
 
204
 
205
+ app.get('/api/hello', (req, res) => {
206
+ res.setHeader("Content-Type", "application/json")
207
+ res.json({"hello": "goodbye"})
208
  res.end()
209
  })
210
  // This is normal TTS: specify voice, text, model. Voices are from openai, use those names or the aliases in lookup table