added tests for backend, router dom to frontend

This commit is contained in:
QkoSad
2024-12-03 16:09:25 +02:00
parent 8e4317abde
commit cb7b3ad94c
1142 changed files with 3599 additions and 573520 deletions
-16
View File
@@ -1,16 +0,0 @@
import express from "express";
import connection from "../db.js";
const router = express.Router();
router.get("/reset", async (req, res) => {
try {
await connection.query("CALL InitDb;", []);
} catch (err) {
console.log(err);
res.status(400).json({ message: "Error" });
}
res.status(200).json({ message: "Success" });
});
export default router;