File size: 342 Bytes
bd1b1fd
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
app.get('/api/v1/tebakgambar', async (req, res) => {
    try {
        const result = await tebakgambar();
        if (result) {
            res.json({ result });
        } else {
            res.status(404).json({ error: "No result found." });
        }
    } catch (error) {
        res.status(500).json({ error: error.message });
    }
});