mirror of
https://github.com/GithubOrgProjectPiza/server.git
synced 2026-09-04 16:46:07 +02:00
Add restaurant and organization controller
- Add restaurant controller - Add organization controller - Add files for types
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
import express, { Request, Response } from "express";
|
||||
import { sayHello } from "../controller/testcontroller.controller";
|
||||
import { addRestaurant } from "../controller/restaurants.controller";
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
@@ -8,6 +8,7 @@ router.get("/", (request: Request, response: Response) => {
|
||||
response.status(200).send("Cool test stuff!");
|
||||
});
|
||||
|
||||
router.post("/test1/:id", sayHello);
|
||||
router.post("/test1", sayHello);
|
||||
router.post("/test2", addRestaurant);
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user