feat: enhance CSV import functionality, integrate react-query for data fetching, and refactor admin components
This commit is contained in:
@@ -40,8 +40,8 @@ app.get("/table-data", authenticate, async (req, res) => {
|
||||
});
|
||||
|
||||
app.post("/create-entry", async (req, res) => {
|
||||
const result = await createEntry(req.body);
|
||||
if (result.success) {
|
||||
const result = await createEntry(req.body.losnummer);
|
||||
if (result) {
|
||||
res.status(201).json({ success: true });
|
||||
} else {
|
||||
res.status(400).json({ success: false });
|
||||
|
Reference in New Issue
Block a user