mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-04 08:36:10 +02:00
14 lines
335 B
TypeScript
14 lines
335 B
TypeScript
|
|
import express, { Request, Response } from "express";
|
|
import { sayHello } from "../controller/testcontroller.controller";
|
|
|
|
const router = express.Router();
|
|
|
|
router.get("/", (request: Request, response: Response) => {
|
|
response.status(200).send("Cool test stuff!");
|
|
});
|
|
|
|
router.post("/test1/:id", sayHello);
|
|
|
|
module.exports = router;
|