Add tests

This commit is contained in:
Stone_Red
2022-03-30 11:31:25 +02:00
parent c6319edc31
commit f3bf6855e3
3 changed files with 5318 additions and 5 deletions
+8 -1
View File
@@ -1,11 +1,18 @@
import express from "express";
const app = express();
let testRoutes = require('./routes/testrouter.route');
app.use("/tests", testRoutes);
async function main() {
app.get("/", (req, res) => {
res.send("Hello World!");
});
app.get("/api/", (req, res) => {
res.send(" welcome World running on port 3000");
})
app.listen(3000, () => {
console.log("Server is running on port 3000");
});