Files
midtrans-gateway/app/modules/invoice/controllers/invoice.controller.js
2026-02-18 16:03:43 +07:00

20 lines
527 B
JavaScript

class InvoiceController {
static async getAll(req, res) {
try {
res.json({ message: "Mengambil semua data invoice" });
} catch (error) {
res.status(500).json({ error: error.message });
}
}
static async getById(req, res) {
try {
res.json({ message: `Mengambil data invoice dengan ID: ${req.params.id}` });
} catch (error) {
res.status(500).json({ error: error.message });
}
}
}
module.exports = InvoiceController;