wishlist-app/src/api/routes/wishlist/index.ts
Benny Samir Hierl dc920360dc #3 add new endpoint to mark item as bought
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
2022-02-09 22:21:43 +01:00

17 lines
570 B
TypeScript

import { FastifyInstance } from 'fastify'
import { getAll, getBySlugUrl } from './read'
import { updateList, updateItem, itemBought } from './update'
import { createList, createItem } from './create'
import { deleteList, deleteItem } from './delete'
export default async (app: FastifyInstance) => {
await app.route(getAll)
await app.route(getBySlugUrl)
await app.route(createList)
await app.route(createItem)
await app.route(updateList)
await app.route(updateItem)
await app.route(itemBought)
await app.route(deleteList)
await app.route(deleteItem)
}