Add more testing stuff

This commit is contained in:
Stone_Red
2022-03-30 11:31:25 +02:00
parent f3bf6855e3
commit d94e918533
5 changed files with 59 additions and 11 deletions
+3 -6
View File
@@ -1,18 +1,15 @@
import express from "express";
const app = express();
let testRoutes = require('./routes/testrouter.route');
let testRoutes = require("./routes/testrouter.route");
app.use(express.json());
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");
});