Add tests

This commit is contained in:
Stone_Red
2022-03-22 10:17:10 +01:00
parent c32fffd538
commit da35fcf424
3 changed files with 5318 additions and 5 deletions
+5300 -4
View File
File diff suppressed because it is too large Load Diff
+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");
});
+10
View File
@@ -0,0 +1,10 @@
import { Request, Response } from "express";
const express = require('express');
const router = express.Router();
router.get('/', (request: Express.Request, response: Response) => {
response.status(200).send("Cool test stuff!");
});
module.exports = router;