mirror of
https://github.com/ThisIsBenny/wishlist-app.git
synced 2025-06-07 05:57:41 +00:00
17 lines
570 B
TypeScript
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)
|
|
}
|