first commit
This commit is contained in:
19
app/modules/invoice/controllers/invoice.controller.js
Normal file
19
app/modules/invoice/controllers/invoice.controller.js
Normal 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;
|
||||
Reference in New Issue
Block a user