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,21 @@
import { IGroceryList } from "../schemas";
import { GroceryList } from "../models/groceryList";
const GroceryInstance = new GroceryList();
export default class GroceryListCtl {
async getAll() {
}
async getOne(id: string) {
}
async post(data: IGroceryList) {
}
async put(id: string, data: IGroceryList) {
}
}

View File

@@ -0,0 +1,21 @@
import { IIngredient } from "../schemas";
import { Ingredient } from "../models/ingredient";
const IngredientInstance = new Ingredient();
export default class IngredientCtl {
async getAll() {
}
async getOne(id: string) {
}
async post(data: IIngredient) {
}
async put(id: string, data: IIngredient) {
}
}