setup for ingredient and grocery routes
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { IGroceryList } from "../schemas";
|
||||
import pool from "../db";
|
||||
|
||||
export class GroceryList {
|
||||
async getAll() {
|
||||
|
||||
}
|
||||
|
||||
async getOne(id: string) {
|
||||
|
||||
}
|
||||
|
||||
async post(data: IGroceryList) {
|
||||
|
||||
}
|
||||
|
||||
async put(id: string, data: IGroceryList) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { IIngredient } from "../schemas";
|
||||
import pool from "../db";
|
||||
|
||||
export class Ingredient {
|
||||
async getAll() {
|
||||
|
||||
}
|
||||
|
||||
async getOne(id: string) {
|
||||
|
||||
}
|
||||
|
||||
async post(data: IIngredient) {
|
||||
|
||||
}
|
||||
|
||||
async put(id: string, data: IIngredient) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user