/** * Shoe API service. * @module app/services/shoe/index */ import Service from "app/db/service/base"; /** * Service API for listing shoes */ export default async function ShoeService(bookshelf) { const service = await Service({ bookshelf, Model: bookshelf.model("Shoe"), authenticate: false, paginate: { pageSize: 25, pageSizeLimit: 100, }, enabled: ["index", "create"], hooks: { before: { index: [], show: [], }, after: { index: [], show: [], }, }, }); return service; }