wf-radio/src/controllers/index.js

12 lines
302 B
JavaScript
Raw Normal View History

async function helloWorld(req, res) {
try {
const query_result = "Hello there!";
res.send(query_result);
} catch (error) {
console.debug("Error at HelloWorld controller");
res.status(500).json({ error: error.message });
}
}
2025-03-29 00:53:45 +01:00
module.exports = { helloWorld };