DeFactOfficial commited on
Commit
3461d58
1 Parent(s): 37201f2

Update api.js

Browse files
Files changed (1) hide show
  1. api.js +5 -1
api.js CHANGED
@@ -238,7 +238,11 @@ app.post("/api/generate/image", async(req, res)=> {
238
  await generateImage(req.body, res, responseFormat)
239
  })
240
 
241
-
 
 
 
 
242
 
243
  // Client webpages and storage for generated content
244
  app.use('/', express.static("public"));
 
238
  await generateImage(req.body, res, responseFormat)
239
  })
240
 
241
+ app.get('/api/generate/html', async(req, res) => {
242
+ console.log("Trying to generate HTML. PARAMS: " + JSON.stringify(req.query))
243
+ await generateHtml(req, res)
244
+ console.log("HTML generation complete")
245
+ })
246
 
247
  // Client webpages and storage for generated content
248
  app.use('/', express.static("public"));