setup for ingredient and grocery routes

This commit is contained in:
Mikayla Dobson
2022-11-19 12:23:23 -06:00
parent 501f1dece8
commit 21db95b624
6 changed files with 127 additions and 0 deletions

View File

@@ -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) => {
})
}

View 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) => {
})
}