ryu-js / plugins /tebak.js
randydev's picture
Create tebak.js
bd1b1fd verified
raw
history blame
342 Bytes
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 });
}
});