2025-04-24 18:54:03 +02:00
|
|
|
const index_service = require("../services/indexService");
|
2025-03-31 09:42:30 +02:00
|
|
|
const handleError = require("../middleware/errors");
|
|
|
|
|
2025-04-24 18:54:03 +02:00
|
|
|
|
|
|
|
async function getVersion(req, res) {
|
2025-03-29 00:53:14 +01:00
|
|
|
try {
|
2025-04-24 18:54:03 +02:00
|
|
|
const query_result = await index_service.getVersion();
|
|
|
|
res.json(query_result);
|
2025-03-29 00:53:14 +01:00
|
|
|
} catch (error) {
|
2025-04-24 18:54:03 +02:00
|
|
|
handleError(error, res);
|
2025-03-29 00:53:14 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-04-24 18:54:03 +02:00
|
|
|
module.exports = { getVersion };
|