Add more testing stuff

This commit is contained in:
Stone_Red
2022-03-23 11:40:16 +01:00
parent da35fcf424
commit 12abcad196
5 changed files with 59 additions and 11 deletions
+8 -5
View File
@@ -1,10 +1,13 @@
import { Request, Response } from "express";
const express = require('express');
import express, { Request, Response } from "express";
import { sayHello } from "../controller/testcontroller.controller";
const router = express.Router();
router.get('/', (request: Express.Request, response: Response) => {
router.get("/", (request: Request, response: Response) => {
response.status(200).send("Cool test stuff!");
});
module.exports = router;
router.post("/test1/:id", sayHello);
module.exports = router;