randydev commited on
Commit
6f9bb64
·
verified ·
1 Parent(s): ad65444

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +14 -0
index.js CHANGED
@@ -25,6 +25,20 @@ app.get('/api/test', async (req, res) => {
25
  }
26
  })
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  app.get('/api/gpt-old', async (req, res) => {
29
  try {
30
  const query = req.query.query;
 
25
  }
26
  })
27
 
28
+ app.get('/api/tebakgambar', async (req, res) => {
29
+ try {
30
+ await tebakgambar().then(result => {
31
+ if (result) {
32
+ res.json({ results });
33
+ } else {
34
+ console.log("No result found.");
35
+ }
36
+ });
37
+ } catch (error) {
38
+ res.status(401).json({ error: error.message });
39
+ }
40
+ });
41
+
42
  app.get('/api/gpt-old', async (req, res) => {
43
  try {
44
  const query = req.query.query;