first commit

This commit is contained in:
2026-02-18 16:03:43 +07:00
commit c52ecd6514
54 changed files with 8270 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
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;