setup for ingredient and grocery routes
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { Express, Router } from "express";
|
||||
|
||||
const router = Router();
|
||||
|
||||
export const groceryListRoute = (app: Express) => {
|
||||
app.use('/grocery-list', router);
|
||||
|
||||
router.get('/', async (req, res, next) => {
|
||||
|
||||
})
|
||||
|
||||
router.get('/:id', async (req, res, next) => {
|
||||
|
||||
})
|
||||
|
||||
router.post('/', async (req, res, next) => {
|
||||
|
||||
})
|
||||
|
||||
router.put('/:id', async (req, res, next) => {
|
||||
|
||||
})
|
||||
}
|
||||
22
server/routes/ingredient.ts
Normal file
22
server/routes/ingredient.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Express, Router } from "express";
|
||||
const router = Router();
|
||||
|
||||
export const ingredientRoute = (app: Express) => {
|
||||
app.use('/ingredient', router);
|
||||
|
||||
router.get('/', async (req, res, next) => {
|
||||
|
||||
})
|
||||
|
||||
router.get('/:id', async (req, res, next) => {
|
||||
|
||||
})
|
||||
|
||||
router.put('/:id', async (req, res, next) => {
|
||||
|
||||
})
|
||||
|
||||
router.post('/', async (req, res, next) => {
|
||||
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user