mirror of
https://github.com/aljazceru/satshkd-vercel.git
synced 2025-12-18 21:54:23 +01:00
22 lines
396 B
JavaScript
22 lines
396 B
JavaScript
const express = require("express");
|
|
const router = express.Router();
|
|
|
|
/**
|
|
* GET product list.
|
|
*
|
|
* @return product list | empty.
|
|
*/
|
|
router.get("/", async (req, res) => {
|
|
try {
|
|
res.json({
|
|
status: 200,
|
|
message: "Get data has successfully",
|
|
});
|
|
} catch (error) {
|
|
console.error(error);
|
|
return res.status(500).send("Server error");
|
|
}
|
|
});
|
|
|
|
module.exports = router;
|